Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-05-31 23:18:51 +0300
committerdartcafe <github@dartcafe.de>2021-05-31 23:18:51 +0300
commit767e6941767dc402d0ffaeb3817c85046498777e (patch)
treefb7403e929918b173d7341eff7e4b1db4ba1db9a /src
parentaa18116c42e97ad12b44c87ffd65ec959f5d2117 (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.scss2
-rw-r--r--src/js/components/Options/Counter.vue2
-rw-r--r--src/js/components/VoteTable/VoteTable.vue18
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 {