fix: restore sticky weekday headers on mobile
The global overflow-y:visible rule for time-grid-on was overriding the mobile overflow-y:auto on .weekly-days-grid, which broke position:sticky on day headers. Wrap desktop overflow rules in a min-width media query and keep mobile scroll container intact. v1.37.4
This commit is contained in:
parent
0fa2893e10
commit
2ad55fe1bd
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.37.3",
|
"version": "1.37.4",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -4069,16 +4069,37 @@ h3 {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable independent scrolling on all inner grid containers */
|
/* Disable independent scrolling on all inner grid containers (desktop only) */
|
||||||
.time-grid-on .weekly-days-grid,
|
@media (min-width: 769px) {
|
||||||
.time-grid-on .weekly-day-column,
|
.time-grid-on .weekly-days-grid,
|
||||||
.time-grid-on .time-slots-container,
|
.time-grid-on .weekly-day-column,
|
||||||
.time-grid-on .time-column-slots,
|
.time-grid-on .time-slots-container,
|
||||||
.time-grid-on .time-column {
|
.time-grid-on .time-column-slots,
|
||||||
|
.time-grid-on .time-column {
|
||||||
overflow-y: visible !important;
|
overflow-y: visible !important;
|
||||||
overflow-x: visible !important;
|
overflow-x: visible !important;
|
||||||
max-height: none !important;
|
max-height: none !important;
|
||||||
min-height: 100% !important;
|
min-height: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Mobile: allow scroll on grid but keep day columns visible for sticky headers */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.time-grid-on .weekly-days-grid {
|
||||||
|
overflow-y: auto !important;
|
||||||
|
overflow-x: hidden !important;
|
||||||
|
}
|
||||||
|
.time-grid-on .weekly-day-column {
|
||||||
|
overflow-y: visible !important;
|
||||||
|
overflow-x: visible !important;
|
||||||
|
max-height: none !important;
|
||||||
|
}
|
||||||
|
.time-grid-on .time-slots-container,
|
||||||
|
.time-grid-on .time-column-slots,
|
||||||
|
.time-grid-on .time-column {
|
||||||
|
overflow-y: visible !important;
|
||||||
|
overflow-x: visible !important;
|
||||||
|
max-height: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure no rogue scrollbars appear and hide webskit ones */
|
/* Ensure no rogue scrollbars appear and hide webskit ones */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user