From 115c991b8dd91c77095781e535454c041b338575 Mon Sep 17 00:00:00 2001 From: Shawn Yama Date: Mon, 3 Apr 2023 15:28:04 -0400 Subject: [PATCH] feat: move pdf download button to Document.vue (#948) --- .../hmi-client/src/assets/css/asset.scss | 5 +++ .../src/components/dataset/Dataset.vue | 6 +--- .../src/components/documents/Document.vue | 36 ++++++++++++++++--- .../src/page/data-explorer/DataExplorer.vue | 28 ++------------- .../components/preview-panel.vue | 7 +--- .../src/services/generate-download-link.ts | 20 +++++++++++ 6 files changed, 60 insertions(+), 42 deletions(-) create mode 100644 packages/client/hmi-client/src/services/generate-download-link.ts diff --git a/packages/client/hmi-client/src/assets/css/asset.scss b/packages/client/hmi-client/src/assets/css/asset.scss index 4e1194c521..4903590f2e 100644 --- a/packages/client/hmi-client/src/assets/css/asset.scss +++ b/packages/client/hmi-client/src/assets/css/asset.scss @@ -27,6 +27,11 @@ color: var(--text-color-primary); } + h4, + .authors { + max-width: var(--constrain-width); + } + .header-and-buttons { display: flex; justify-content: space-between; diff --git a/packages/client/hmi-client/src/components/dataset/Dataset.vue b/packages/client/hmi-client/src/components/dataset/Dataset.vue index 54295efa7a..a515029643 100644 --- a/packages/client/hmi-client/src/components/dataset/Dataset.vue +++ b/packages/client/hmi-client/src/components/dataset/Dataset.vue @@ -2,7 +2,7 @@
Simulation run
-

+

@@ -198,10 +198,6 @@ const showAccordion = computed(() =>