From 377a24eac6ff551dcc6cf89e076e3674dc264de7 Mon Sep 17 00:00:00 2001 From: Scarriffle Date: Wed, 8 Apr 2026 15:15:37 +0200 Subject: [PATCH] Fix: Kopfzeilen-Breite per JS an Scrollbar-Breite anpassen --- frontend/js/views/week.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/js/views/week.js b/frontend/js/views/week.js index 212574a..3861d06 100644 --- a/frontend/js/views/week.js +++ b/frontend/js/views/week.js @@ -157,6 +157,12 @@ export function renderWeek(container, currentDate, events, onSlotClick, onEventC const body = container.querySelector('.week-body'); if (body) body.scrollTop = 8 * hourH - 20; + // Align sticky header width to body content width (account for scrollbar) + const stickyTop = container.querySelector('.week-head-sticky'); + if (body && stickyTop) { + stickyTop.style.paddingRight = (body.offsetWidth - body.clientWidth) + 'px'; + } + // Render current-time line renderNowLine(container, days, hourH);