💄 微调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 class="tp-vote-list">
<div v-for="(item, index) in votes?.data" :key="index" class="tp-vote-item"> <div v-for="(item, index) in votes?.data" :key="index" class="tp-vote-item">
<div class="tp-vote-item-title"> <div class="tp-vote-item-title">
<span>{{ item.title }}</span> <span class="title">{{ item.title }}</span>
<span> <span class="val">
<span>{{ item.count }}</span> <span>{{ item.count }}</span>
<span>{{ item.percent.toFixed(2) }}%</span> <span>{{ item.percent.toFixed(2) }}%</span>
</span> </span>
@@ -90,26 +90,27 @@ function getWidth(item: TpVoteData): string {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
}
.tp-vote-item-title :first-child { .title {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
} }
.tp-vote-item-title :last-child { .val {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 5px; gap: 5px;
} white-space: nowrap;
.tp-vote-item-title :last-child :first-child { :first-child {
font-size: 12px; font-size: 12px;
} }
.tp-vote-item-title :last-child :last-child { :last-child {
font-size: 10px; font-size: 10px;
} }
}
}
.tp-vote-progress { .tp-vote-progress {
overflow: hidden; overflow: hidden;