diff --git a/src/assets/layout.css b/src/assets/layout.css index 7e15b52..28d191b 100644 --- a/src/assets/layout.css +++ b/src/assets/layout.css @@ -1,14 +1,9 @@ -/* Layout variables */ :root { - /* Layout */ - --row-h: 2.2em; - --week-w: 3em; + --week-w: 3rem; --day-w: 1fr; - --row-h: 12vh; - --month-w: 4em; + --month-w: 2rem; + --row-h: 15vh; } - -/* Layout & typography */ * { box-sizing: border-box; } @@ -100,35 +95,10 @@ header { #calendar-viewport::-webkit-scrollbar { display: none; } - -.jogwheel-viewport, -#jogwheel-viewport { - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: var(--month-w); - overflow-y: auto; - overflow-x: hidden; - scrollbar-width: none; - z-index: 20; - cursor: ns-resize; -} -.jogwheel-viewport::-webkit-scrollbar, -#jogwheel-viewport::-webkit-scrollbar { - display: none; -} - -.jogwheel-content, -#jogwheel-content { - position: relative; - width: 100%; -} .calendar-content, #calendar-content { position: relative; } - /* Week row: label + 7-day grid + jogwheel column */ .week-row { display: grid; diff --git a/src/components/CalendarView.vue b/src/components/CalendarView.vue index 9ae1a66..1220931 100644 --- a/src/components/CalendarView.vue +++ b/src/components/CalendarView.vue @@ -347,7 +347,7 @@ function createWeek(virtualWeek) { text: `${getLocalizedMonthName(monthToLabel)} '${year}`, month: monthToLabel, weeksSpan: weeksSpan, - height: weeksSpan * rowHeight.value, + monthClass: monthAbbr[monthToLabel], } } } @@ -651,18 +651,6 @@ function openSettings() { // Heuristic: rotate month label (180deg) only for predominantly Latin text. // We explicitly avoid locale detection; rely solely on characters present. // Disable rotation if any CJK Unified Ideograph or Compatibility Ideograph appears. -function shouldRotateMonth(label) { - if (!label) return false - // Rotate ONLY if any Latin script alphabetic character is present. - // Prefer Unicode script property when supported. - try { - if (/\p{Script=Latin}/u.test(label)) return true - } catch (e) { - // Fallback for environments lacking Unicode property escapes. - if (/[A-Za-z\u00C0-\u024F\u1E00-\u1EFF]/u.test(label)) return true - } - return false -} // Keep roughly same visible date when first_day setting changes. watch( () => calendarStore.config.first_day, @@ -723,19 +711,6 @@ window.addEventListener('resize', () => { @day-touchstart="handleDayTouchStart" @event-click="handleEventClick" /> - -