From 2aff1d3d06a73d42b3239e67da1040ad6c261aff Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 13 Jan 2025 10:20:28 +0100 Subject: [PATCH 1/5] feat: refs #8120 added new style to summary popups --- src/components/common/VnSummaryDialog.vue | 34 +++++++++++++++++++++-- src/css/quasar.variables.scss | 5 ++++ 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/src/components/common/VnSummaryDialog.vue b/src/components/common/VnSummaryDialog.vue index 08fc8870d..57473cb3f 100644 --- a/src/components/common/VnSummaryDialog.vue +++ b/src/components/common/VnSummaryDialog.vue @@ -1,7 +1,8 @@ + + diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss index 9f7c62848..d6e992437 100644 --- a/src/css/quasar.variables.scss +++ b/src/css/quasar.variables.scss @@ -33,6 +33,11 @@ $dark-shadow-color: black; $layout-shadow-dark: 0 0 10px 2px #00000033, 0 0px 10px #0000003d; $spacing-md: 16px; $color-font-secondary: #777; +$width-xs: 400px; +$width-sm: 544px; +$width-md: 800px; +$width-lg: 1280px; +$width-xl: 1600px; .bg-success { background-color: $positive; } -- 2.40.1 From b48cc55f4beec8bc03f67ff938f4e935fa98642f Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 13 Jan 2025 11:01:26 +0100 Subject: [PATCH 2/5] refactor: refs #8120 requested changes --- src/components/common/VnSummaryDialog.vue | 22 +++++-------------- src/components/ui/CardDescriptor.vue | 9 ++++++-- src/composables/useSummaryDialog.js | 4 ++-- .../Customer/Card/CustomerDescriptor.vue | 1 + 4 files changed, 15 insertions(+), 21 deletions(-) diff --git a/src/components/common/VnSummaryDialog.vue b/src/components/common/VnSummaryDialog.vue index 57473cb3f..37de68de2 100644 --- a/src/components/common/VnSummaryDialog.vue +++ b/src/components/common/VnSummaryDialog.vue @@ -1,6 +1,5 @@ diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index f4c0091d2..88c8ae787 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -36,6 +36,10 @@ const $props = defineProps({ type: Object, default: null, }, + moduleClass: { + type: String, + default: 'defaultSummary', + }, }); const state = useState(); @@ -128,9 +132,10 @@ const toModule = computed(() => - { @on-fetch="setData" :summary="$props.summary" data-key="customer" + :module-class="'largeSummary'" >