diff --git a/src/app/admin/schedule/page.tsx b/src/app/admin/schedule/page.tsx index 081cf3d..4989b89 100644 --- a/src/app/admin/schedule/page.tsx +++ b/src/app/admin/schedule/page.tsx @@ -95,10 +95,8 @@ function timeToMinutes(timeStr: string): number { return t.h * 60 + t.m; } -const GRID_TOP_PAD = 8; // px — space so the first time label isn't clipped - function minutesToY(minutes: number): number { - return ((minutes - HOUR_START * 60) / 60) * HOUR_HEIGHT + GRID_TOP_PAD; + return ((minutes - HOUR_START * 60) / 60) * HOUR_HEIGHT; } function yToMinutes(y: number): number { @@ -912,7 +910,7 @@ function CalendarGrid({
{/* Day headers */}
-
+
{sortedDays.map((day, di) => (
{/* Time labels */} -
- {hours.slice(0, -1).map((h) => ( +
+ {hours.slice(0, -1).map((h, i) => (
0 ? " -translate-y-1/2" : ""}`} + style={{ top: `${(h - HOUR_START) * HOUR_HEIGHT}px` }} > {String(h).padStart(2, "0")}:00
@@ -953,7 +951,7 @@ function CalendarGrid({ key={day.day} ref={(el) => { columnRefs.current[di] = el; }} className={`flex-1 border-l border-white/10 relative ${drag ? "cursor-grabbing" : "cursor-pointer"}`} - style={{ height: `${TOTAL_HOURS * HOUR_HEIGHT + GRID_TOP_PAD}px` }} + style={{ height: `${TOTAL_HOURS * HOUR_HEIGHT}px` }} onMouseMove={(e) => { if (drag) return; // Ignore if hovering over a class block @@ -980,7 +978,7 @@ function CalendarGrid({
))} {/* Half-hour lines */} @@ -988,7 +986,7 @@ function CalendarGrid({
))}