fix main menu border bag

This commit is contained in:
yzned
2025-07-20 20:01:26 +03:00
committed by yzned
parent 0ce3c0307f
commit 7f1b2b9a05
4 changed files with 6 additions and 4 deletions

View File

@@ -84,6 +84,8 @@ const MainMenuContent = observer(() => {
},
];
const showBorder = hasScrolled && isMainMenuOpen;
return (
<div
data-open={isMainMenuOpen}
@@ -91,7 +93,7 @@ const MainMenuContent = observer(() => {
className="relative w-full h-full overflow-x-hidden data-[open=true]:overflow-y-auto overflow-y-hidden flex flex-col"
>
<header
data-scrolled={hasScrolled}
data-scrolled={showBorder}
className="data-[scrolled=true]:border-b data-[scrolled=true]:border-fill-150 sticky top-0 z-10 bg-white pt-[30px] space-y-12 flex flex-col w-full px-4 pb-4 transition-shadow"
>
<div className="relative w-full h-[32px]">