refs #874 Fix polls components design

This commit is contained in:
AkiraFukushima 2019-07-14 22:22:50 +09:00
parent 369ff3097b
commit 46e541c5ed
1 changed files with 12 additions and 3 deletions

View File

@ -16,9 +16,9 @@
</li> </li>
</template> </template>
</ul> </ul>
<el-button type="success" @click="vote" v-if="!poll.voted" :disabled="pollRadio === null">Vote</el-button> <el-button type="success" size="small" @click="vote" v-if="!poll.voted" :disabled="pollRadio === null">Vote</el-button>
{{ poll.votes_count }} votes, <span class="votes-count">{{ poll.votes_count }} votes,</span>
until {{ parseDatetime(poll.expires_at, now) }} <span class="until">until {{ parseDatetime(poll.expires_at, now) }}</span>
</div> </div>
</template> </template>
@ -78,6 +78,10 @@ export default {
position: relative; position: relative;
margin: 4px 0; margin: 4px 0;
line-height: 32px; line-height: 32px;
.el-radio /deep/ {
color: var(--theme-regular-color);
}
} }
.voted { .voted {
@ -102,5 +106,10 @@ export default {
} }
} }
} }
.votes-count {
display: inline-block;
padding-left: 8px;
}
} }
</style> </style>