diff --git a/frontend/js/views/schedule.js b/frontend/js/views/schedule.js index b40418a..7e9c5c2 100644 --- a/frontend/js/views/schedule.js +++ b/frontend/js/views/schedule.js @@ -10,6 +10,8 @@ import { const API = (url, opts = {}) => fetch('/api' + url, { headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${localStorage.getItem('token')}`, ...opts.headers }, ...opts }).then(r => r.json()); const HOURS = Array.from({ length: 24 }, (_, i) => i); +// Where the week view opens when nothing is scheduled yet — the start of a working day. +const DEFAULT_SCROLL_HOUR = 8; function esc(str) { const d = document.createElement('div'); d.textContent = str; return d.innerHTML; } @@ -51,8 +53,8 @@ export async function render(container) { -
-
+
+