From 9be17cfaf39cca212aba02627bc5becec785cc02 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 17 Nov 2023 15:01:28 +0100 Subject: [PATCH] Result page fixes [SCI-9731] --- app/javascript/vue/results/results_toolbar.vue | 2 +- app/javascript/vue/shared/content/text.vue | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/javascript/vue/results/results_toolbar.vue b/app/javascript/vue/results/results_toolbar.vue index 4f413d18c..9a7d9f0c1 100644 --- a/app/javascript/vue/results/results_toolbar.vue +++ b/app/javascript/vue/results/results_toolbar.vue @@ -34,7 +34,7 @@ -
+
diff --git a/app/javascript/vue/shared/content/text.vue b/app/javascript/vue/shared/content/text.vue index b5652fbba..489651e50 100644 --- a/app/javascript/vue/shared/content/text.vue +++ b/app/javascript/vue/shared/content/text.vue @@ -48,7 +48,7 @@ @editingDisabled="disableEditMode" @editingEnabled="enableEditMode" /> -
+
{{ i18n.t("protocols.steps.text.empty_text") }}
@@ -112,6 +112,16 @@ }) }, computed: { + wrapTables() { + const container = $(`${this.element.attributes.orderable.text_view}`); + container.find('table').toArray().forEach((table) => { + if ($(table).parent().hasClass('table-wrapper')) return; + $(table).css('float', 'none').wrapAll(` +
+ `); + }); + return container.prop('outerHTML'); + }, actionMenu() { let menu = []; if (this.element.attributes.orderable.urls.update_url) {