From 5a1411229a8d92d6f2e24872c4cb150edde86862 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Fri, 3 Jul 2026 00:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9C=88=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=8D=95=E9=87=8F=E5=A7=93=E5=90=8D=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JY-Salon-Front/src/views/PlanningView.vue | 30 ++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/JY-Salon-Front/src/views/PlanningView.vue b/JY-Salon-Front/src/views/PlanningView.vue index b077bbe4..dcbdd500 100644 --- a/JY-Salon-Front/src/views/PlanningView.vue +++ b/JY-Salon-Front/src/views/PlanningView.vue @@ -148,7 +148,8 @@ 休
- {{ count.shortName }}{{ count.count }} + {{ resolveMonthCountName(count) }} + {{ count.count }} 空
@@ -329,6 +330,10 @@ const buildExpandedBlocks = (counts: NormalizedCount[]): MonthBlock[] => { }))) } +const resolveMonthCountName = (count: NormalizedCount): string => { + return String(count.artistName || count.shortName || '?').slice(0, 3) +} + const buildMonthDays = (): MonthDay[] => { const map = summaryMap(daySummaries.value) const todayText = formatDate(new Date()) @@ -893,16 +898,35 @@ onMounted(() => { } .month-bars span { + display: flex; + align-items: center; + justify-content: space-between; + gap: 4px; max-width: 100%; + min-width: 0; overflow: hidden; border-radius: 6px; - padding: 1px 4px; + padding: 1px 5px; color: #fff; font-size: 10px; - text-overflow: ellipsis; white-space: nowrap; } +.month-bars span b { + min-width: 0; + overflow: hidden; + font-weight: 800; + text-align: left; + text-overflow: ellipsis; +} + +.month-bars span em { + flex: 0 0 auto; + font-style: normal; + font-weight: 900; + text-align: right; +} + .month-bars small, .month-blocks small { color: #b0a79d;