Updates calendar week info and event rendering
Refactors how the calendar week information is updated to use the actual rendered column dates, ensuring accuracy after workweek changes. It also adjusts event rendering to target the swp-calendar-container element, preventing rendering issues. The change also addresses a styling issue that was preventing the scroll bar from appearing in the correct location.
This commit is contained in:
parent
d017d48bd6
commit
2f854b2c64
2 changed files with 143 additions and 5 deletions
|
|
@ -151,11 +151,37 @@ swp-calendar-header {
|
|||
top: 0;
|
||||
z-index: 3; /* Lower than header-spacer so it slides under during horizontal scroll */
|
||||
height: calc(var(--header-height) + var(--all-day-row-height)); /* Same calculation as spacers */
|
||||
|
||||
/* Force scrollbar to appear for alignment */
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
|
||||
/* Ensure there's scrollable content by adding min-height slightly larger than container */
|
||||
min-height: calc(var(--header-height) + var(--all-day-row-height) + 1px);
|
||||
|
||||
/* Firefox - hide scrollbar but keep space */
|
||||
scrollbar-width: auto; /* Normal width to match content scrollbar */
|
||||
scrollbar-color: transparent transparent;
|
||||
}
|
||||
|
||||
/* WebKit browsers (Chrome, Safari, Edge) - hide scrollbar but keep space */
|
||||
swp-calendar-header::-webkit-scrollbar {
|
||||
width: 17px; /* Match system default scrollbar width */
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
swp-calendar-header::-webkit-scrollbar-thumb {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
swp-calendar-header::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
|
||||
swp-day-header {
|
||||
padding: 12px;
|
||||
pointer-events: auto; /* Ensure header clicks work despite parent scrollbar */
|
||||
text-align: center;
|
||||
border-right: 1px solid var(--color-grid-line);
|
||||
border-bottom: 1px solid var(--color-grid-line);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue