1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-01 08:18:51 +09:00

refactor(client): Use unique class name

This commit is contained in:
syuilo 2020-05-10 17:06:20 +09:00
parent 9784ade84f
commit c102978dd5
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@
<div class="files" v-if="appearNote.files.length > 0">
<x-media-list :media-list="appearNote.files" :parent-element="noteBody"/>
</div>
<x-poll v-if="appearNote.poll" :note="appearNote" ref="pollViewer"/>
<x-poll v-if="appearNote.poll" :note="appearNote" ref="pollViewer" class="poll"/>
<mk-url-preview v-for="url in urls" :url="url" :key="url" :compact="true" class="url-preview"/>
<div class="renote" v-if="appearNote.renote"><x-note-preview :note="appearNote.renote"/></div>
</div>
@ -920,7 +920,7 @@ export default Vue.extend({
margin-top: 8px;
}
> .mk-poll {
> .poll {
font-size: 80%;
}

View File

@ -1,5 +1,5 @@
<template>
<div class="mk-poll" :data-done="closed || isVoted">
<div class="tivcixzd" :data-done="closed || isVoted">
<ul>
<li v-for="(choice, i) in poll.choices" :key="i" @click="vote(i)" :class="{ voted: choice.voted }">
<div class="backdrop" :style="{ 'width': `${showResult ? (choice.votes / total * 100) : 0}%` }"></div>
@ -99,7 +99,7 @@ export default Vue.extend({
</script>
<style lang="scss" scoped>
.mk-poll {
.tivcixzd {
> ul {
display: block;
margin: 0;