The kiosk deliberately ignored calendar.showWeekend when it was built, treating the parent's toggle as print-only -- but that's not what parents actually expect: hiding the weekend on the dashboard should hide it on the tablet too. kiosk.js now toggles weekendWrap's hidden class the same way the parent editor does. Separately, weekdayBoard's auto-fit/minmax(240px) grid only fit 4 columns on real tablet landscape widths (~1024-1180px), pushing Friday to a second row. Since weekdayBoard always holds exactly 5 day-cards, forcing repeat(5, 1fr) once there's clearly tablet-landscape width (960px+, excludes large phones in landscape) fits all 5 comfortably instead of relying on auto-fit's width heuristic. Verified both at real tablet landscape sizes (1024x768, 1180x820) with the Browser tool: 5 weekday columns fit in one row, and the weekend section correctly appears/disappears with showWeekend.
71 lines
2.7 KiB
HTML
71 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>My Week</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@500;700;800&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="/css/shared.css">
|
|
<meta name="theme-color" content="#F1F5FB">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
|
<!--KIOSK_HEAD_TAGS-->
|
|
<style>
|
|
/* Kiosk is touch-first and has nothing to edit — bigger targets, no toolbar chrome. */
|
|
header{ justify-content: center; text-align: center; }
|
|
.toolbar{ display:none; }
|
|
.board{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
|
|
.task-text{ font-size: 1.02rem; }
|
|
|
|
/* weekdayBoard always holds exactly 5 day-cards (Mon-Fri) — on a tablet
|
|
in landscape there's room for all 5 side by side, but the 240px
|
|
auto-fit minimum (sized for narrower/portrait views) was only letting
|
|
4 fit, pushing Friday to a second row. Force exactly 5 columns once
|
|
there's clearly tablet-landscape width to do it justice; narrower
|
|
views keep the auto-fit wrapping behavior above. 960px excludes large
|
|
phones in landscape (~926px max) while covering real tablets.
|
|
*/
|
|
@media (orientation: landscape) and (min-width: 960px) {
|
|
.board{ grid-template-columns: repeat(5, 1fr); }
|
|
}
|
|
|
|
/* Full-bleed standalone launch: respect notches/home-indicator, and stop
|
|
iOS's rubber-band overscroll from flashing white space at the edges. */
|
|
body{
|
|
padding-top: max(24px, env(safe-area-inset-top));
|
|
padding-right: max(16px, env(safe-area-inset-right));
|
|
padding-bottom: max(60px, env(safe-area-inset-bottom));
|
|
padding-left: max(16px, env(safe-area-inset-left));
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
/* 24px checkbox alone is well under Apple's 44pt touch-target minimum —
|
|
make the whole row tappable and give the checkbox itself more room. */
|
|
.task.kiosk{ cursor: pointer; padding: 8px 4px; }
|
|
.task.kiosk input[type=checkbox]{ width: 32px; height: 32px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<div>
|
|
<h1 id="childName">…</h1>
|
|
<div class="subtitle" id="calTitle"></div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="board" id="weekdayBoard"></div>
|
|
<div class="weekend-toggle-wrap" id="weekendWrap"></div>
|
|
|
|
<div id="emptyState" class="empty-state" style="display:none; max-width:600px; margin:60px auto;">
|
|
No calendar has been set up yet. Ask a parent to create one.
|
|
</div>
|
|
|
|
<script src="/js/calendarRender.js"></script>
|
|
<script src="/js/kiosk.js"></script>
|
|
|
|
</body>
|
|
</html>
|