From d7406ef6529ae73ed7bc790a08827be15d428ad4 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 24 Jul 2026 11:36:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(shift):=20=E8=B0=83=E7=8F=AD=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=BF=B7=E4=BD=A0=E6=9C=88=E5=8E=86=E9=87=8D=E6=8E=92?= =?UTF-8?q?=E8=B5=B7=E7=82=B9=E8=A7=92=E6=A0=87=E6=98=BE=E7=A4=BA=E7=8F=AD?= =?UTF-8?q?/=E4=BC=91=E7=8A=B6=E6=80=81(=E8=B5=B7=C2=B7=E7=8F=AD/=E8=B5=B7?= =?UTF-8?q?=C2=B7=E4=BC=91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/kotlin/plus/rua/project/ui/ShiftCalendarGrid.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/plus/rua/project/ui/ShiftCalendarGrid.kt b/core/src/main/kotlin/plus/rua/project/ui/ShiftCalendarGrid.kt index 361b0b4..06ff3c7 100644 --- a/core/src/main/kotlin/plus/rua/project/ui/ShiftCalendarGrid.kt +++ b/core/src/main/kotlin/plus/rua/project/ui/ShiftCalendarGrid.kt @@ -340,7 +340,11 @@ private fun ShiftDayCell( else -> Color.Transparent } val badgeText = when { - isRephaseStart -> "起" + isRephaseStart -> when (kind) { + ShiftKind.WORK -> "起·班" + ShiftKind.OFF -> "起·休" + null -> "起" + } kind == ShiftKind.WORK -> "班" kind == ShiftKind.OFF -> "休" else -> ""