From b6bd3ca0286f0848a3a52bf78f5f7aa93a609801 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Tue, 22 Jul 2025 19:36:25 +0200 Subject: [PATCH 1/9] fix vote indicator and confirmed option Signed-off-by: dartcafe --- src/assets/scss/vars.scss | 2 + src/components/Base/modules/StickyDiv.vue | 156 ++++++++++++--------- src/components/Options/Counter.vue | 8 +- src/components/Options/OptionItem.vue | 11 ++ src/components/VoteTable/VoteButton.vue | 62 ++++---- src/components/VoteTable/VoteColumn.vue | 98 ------------- src/components/VoteTable/VoteIndicator.vue | 28 ++-- src/components/VoteTable/VoteItem.vue | 29 ++-- src/components/VoteTable/VoteTable.vue | 38 +++-- src/stores/poll.ts | 10 +- src/stores/votes.ts | 1 - src/views/Vote.vue | 3 +- 12 files changed, 190 insertions(+), 256 deletions(-) delete mode 100644 src/components/VoteTable/VoteColumn.vue diff --git a/src/assets/scss/vars.scss b/src/assets/scss/vars.scss index f6858a2df4..5fe5ec20bb 100644 --- a/src/assets/scss/vars.scss +++ b/src/assets/scss/vars.scss @@ -11,4 +11,6 @@ --color-polls-background-maybe: rgba(var(--color-warning-rgb), 0.1); --container-background-light: rgba(var(--color-info-rgb), 0.1); --cap-width: 49rem; + --shadow-height: 0.7rem; + --shadow-height-inverted: -0.7rem; } diff --git a/src/components/Base/modules/StickyDiv.vue b/src/components/Base/modules/StickyDiv.vue index e14b7f9a5d..8d3159c154 100644 --- a/src/components/Base/modules/StickyDiv.vue +++ b/src/components/Base/modules/StickyDiv.vue @@ -50,7 +50,6 @@ const style = computed(() => { }) const stickyClass = computed(() => ({ - container: true, 'sticky-top': stickyTop, 'sticky-left': stickyLeft, 'sticky-bottom-shadow': activateBottomShadow, @@ -59,93 +58,114 @@ const stickyClass = computed(() => ({ diff --git a/src/components/Options/Counter.vue b/src/components/Options/Counter.vue index b901ba2aba..2c21285ece 100644 --- a/src/components/Options/Counter.vue +++ b/src/components/Options/Counter.vue @@ -6,8 +6,11 @@