diff --git a/src/components/viewPost/tp-vote.vue b/src/components/viewPost/tp-vote.vue index 4e905a60..acd6501e 100644 --- a/src/components/viewPost/tp-vote.vue +++ b/src/components/viewPost/tp-vote.vue @@ -7,8 +7,8 @@
- {{ item.title }} - + {{ item.title }} + {{ item.count }}票 {{ item.percent.toFixed(2) }}% @@ -90,25 +90,26 @@ function getWidth(item: TpVoteData): string { display: flex; align-items: center; justify-content: space-between; -} -.tp-vote-item-title :first-child { - font-size: 16px; - font-weight: bold; -} + .title { + font-size: 16px; + font-weight: bold; + } -.tp-vote-item-title :last-child { - display: flex; - flex-direction: column; - gap: 5px; -} + .val { + display: flex; + flex-direction: column; + gap: 5px; + white-space: nowrap; -.tp-vote-item-title :last-child :first-child { - font-size: 12px; -} + :first-child { + font-size: 12px; + } -.tp-vote-item-title :last-child :last-child { - font-size: 10px; + :last-child { + font-size: 10px; + } + } } .tp-vote-progress {