From 398ee9acfcfa3baaa2f0a75ba82114a74722ba0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Sun, 3 May 2026 10:35:37 +0800 Subject: [PATCH] fix: landscape toolbar date range style matches regular toolbar Replaces bold centered date with nav arrows in landscape matrix view with the same view-toolbar__nav + view-toolbar__range pattern used by the regular toolbar (lighter font, wrapping text, consistent sizing). Co-Authored-By: Claude Opus 4.7 --- src/pages/clazz/index.vue | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/src/pages/clazz/index.vue b/src/pages/clazz/index.vue index 54e1ce8..56d91d9 100644 --- a/src/pages/clazz/index.vue +++ b/src/pages/clazz/index.vue @@ -32,14 +32,12 @@
-
- 本周 -
-
+
- {{ matrixWeekRange }} + 本周
+ {{ matrixWeekRange }}
退出横屏 { + if (!calendar.value) { console.debug('[clazz draw] skip, calendar null'); return; } let api = calendar.value.getApi() api.removeAllEvents(); store.list.forEach(item => { @@ -1447,8 +1446,7 @@ export default defineComponent({ flex-shrink: 0; min-height: var(--landscape-toolbar-height); box-sizing: border-box; - display: grid; - grid-template-columns: auto minmax(0, 1fr) auto; + display: flex; align-items: center; gap: 0.08rem; padding: 0.08rem 0.12rem; @@ -1456,29 +1454,6 @@ export default defineComponent({ background: #fff; } -.landscape-shell__left { - display: flex; - align-items: center; - gap: 0.08rem; -} - -.landscape-shell__title { - min-width: 0; - display: flex; - align-items: center; - justify-content: center; - gap: 0.08rem; - color: #333; - font-size: 0.24rem; - font-weight: 600; - - span { - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } -} .landscape-shell__toggle { display: flex;