💄 微调UI

This commit is contained in:
目棃
2025-02-20 17:00:59 +08:00
parent 25f95d9f90
commit 2b15e1a351

View File

@@ -7,8 +7,8 @@
<div class="tp-vote-list">
<div v-for="(item, index) in votes?.data" :key="index" class="tp-vote-item">
<div class="tp-vote-item-title">
<span>{{ item.title }}</span>
<span>
<span class="title">{{ item.title }}</span>
<span class="val">
<span>{{ item.count }}</span>
<span>{{ item.percent.toFixed(2) }}%</span>
</span>
@@ -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 {