diff options
author | dartcafe <github@dartcafe.de> | 2021-05-31 23:18:51 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-05-31 23:18:51 +0300 |
commit | 767e6941767dc402d0ffaeb3817c85046498777e (patch) | |
tree | fb7403e929918b173d7341eff7e4b1db4ba1db9a /src | |
parent | aa18116c42e97ad12b44c87ffd65ec959f5d2117 (diff) |
change conter in list view
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/js/assets/scss/print.scss | 2 | ||||
-rw-r--r-- | src/js/components/Options/Counter.vue | 2 | ||||
-rw-r--r-- | src/js/components/VoteTable/VoteTable.vue | 18 |
3 files changed, 13 insertions, 9 deletions
diff --git a/src/js/assets/scss/print.scss b/src/js/assets/scss/print.scss index 9e2e6ad3..cde3110a 100644 --- a/src/js/assets/scss/print.scss +++ b/src/js/assets/scss/print.scss @@ -48,7 +48,7 @@ #header, #app-navigation-vue, #app-sidebar-vue, - .counter, + .counter.barStyle, .area__footer, .action-item, .header-actions, diff --git a/src/js/components/Options/Counter.vue b/src/js/components/Options/Counter.vue index f43c8786..7ac414c4 100644 --- a/src/js/components/Options/Counter.vue +++ b/src/js/components/Options/Counter.vue @@ -21,7 +21,7 @@ --> <template> - <div class="counter"> + <div :class="['counter' , counterStyle ]"> <div v-if="counterStyle === 'iconStyle'" class="counter--icon"> <div class="yes"> <span>{{ option.yes }}</span> diff --git a/src/js/components/VoteTable/VoteTable.vue b/src/js/components/VoteTable/VoteTable.vue index 312fc83f..0ac5c0d4 100644 --- a/src/js/components/VoteTable/VoteTable.vue +++ b/src/js/components/VoteTable/VoteTable.vue @@ -49,9 +49,7 @@ <Counter v-else-if="acl.allowSeeResults" :show-maybe="!!poll.allowMaybe" - :option="option" - :counter-style="viewMode === 'table-view' ? 'iconStyle' : 'barStyle'" - :show-no="viewMode === 'list-view'" /> + :option="option" /> <CalendarPeek v-if="poll.type === 'datePoll' && getCurrentUser() && settings.calendarPeek" :option="option" /> <VoteItem v-for="(participant) in participants" @@ -320,10 +318,16 @@ export default { } .counter { - position: absolute; - bottom: 0; - width: 100%; - padding-left: 44px; + &.barStyle { + position: absolute; + bottom: 0; + width: 100%; + padding-left: 44px; + } + &.iconStyle { + order: 0; + padding-left: 44px; + } } .vote-item.currentuser { |