fix(layout): keep expanded sidebars above sticky content
All checks were successful
Deploy production / deploy (push) Successful in 12m50s

This commit is contained in:
lizerk 2026-09-11 17:49:47 +03:00
parent 5adfdbbd25
commit 7df236a094
2 changed files with 2 additions and 2 deletions

View File

@ -618,7 +618,7 @@ function LeftNav({
className={`hidden shrink-0 transition-[width] duration-200 lg:block ${compact ? "w-14" : "w-64"}`}
>
<div
className={`space-y-4 transition-[width] duration-200 lg:overflow-y-auto ${expanded ? "z-[35] lg:w-64" : ""} ${
className={`space-y-4 transition-[width] duration-200 lg:overflow-y-auto ${expanded ? "z-[70] lg:w-64" : ""} ${
fixedDesktop
? `lg:fixed lg:top-0 lg:bottom-0 lg:pt-[4.5rem] lg:pb-8 ${compact ? `lg:left-3 ${expanded ? "lg:w-64" : "lg:w-14"}` : "lg:w-64"}`
: "lg:sticky lg:top-8 lg:max-h-[calc(100dvh-7.5rem)] lg:pb-2"

View File

@ -44,7 +44,7 @@ export const CalendarSidebar = memo(function CalendarSidebar(
return (
<aside className="hidden w-14 shrink-0 transition-[width] duration-200 lg:block">
<div
className={`z-[35] overflow-hidden transition-[width] duration-200 ${expanded ? "lg:w-72" : "lg:w-14"} ${
className={`z-[70] overflow-hidden transition-[width] duration-200 ${expanded ? "lg:w-72" : "lg:w-14"} ${
fixedDesktop
? "lg:fixed lg:bottom-0 lg:right-3 lg:top-0 lg:pt-[4.5rem] lg:pb-8"
: "lg:sticky lg:top-8 lg:max-h-[calc(100dvh-7.5rem)] lg:pb-2"