mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fixed sidebar scrolling issues
This commit is contained in:
1 parent
7c5fc1aeca
commit
425f1992c7
3 files changed
+9
-11
No files matched your search
@@ -87,14 +87,13 @@ const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
|
||||
<div
|
||||
className={[
|
||||
'transition-all ml-8 duration-150 ease-out',
|
||||
|
||||
// enabled
|
||||
currentLevel === id && 'opacity-100 ml-0 delay-150',
|
||||
currentLevel === id && 'opacity-100 ml-0 delay-150 h-auto',
|
||||
// move menu back to margin-left
|
||||
currentLevel === 'home' && 'ml-12',
|
||||
|
||||
// disabled
|
||||
currentLevel !== 'home' && currentLevel !== id ? '-ml-8' : '',
|
||||
currentLevel !== id ? 'opacity-0 invisible absolute' : '',
|
||||
currentLevel !== id ? 'opacity-0 invisible absolute h-0 overflow-hidden' : '',
|
||||
].join(' ')}
|
||||
>
|
||||
<div className={'w-full flex flex-col gap-0 sticky top-8'}>
|
||||
|
||||
@@ -34,12 +34,12 @@ const NavigationMenuGuideList: React.FC<Props> = ({ currentLevel, id, setLevel }
|
||||
className={[
|
||||
'transition-all ml-8 duration-150 ease-out',
|
||||
// enabled
|
||||
currentLevel === id && 'opacity-100 ml-0 delay-150 h-auto',
|
||||
// move menu back to margin-left
|
||||
currentLevel === id && 'opacity-100 ml-0 delay-150',
|
||||
currentLevel === 'home' && 'ml-12',
|
||||
|
||||
// disabled
|
||||
currentLevel !== 'home' && currentLevel !== id ? '-ml-8' : '',
|
||||
currentLevel !== id ? 'opacity-0 invisible absolute h-0 overflow-hidden' : '',
|
||||
currentLevel !== id ? 'opacity-0 invisible absolute' : '',
|
||||
].join(' ')}
|
||||
>
|
||||
<ul className={['relative w-full flex flex-col gap-0'].join(' ')}>
|
||||
|
||||
@@ -140,14 +140,13 @@ const NavigationMenuRefList: React.FC<INavigationMenuRefList> = ({
|
||||
<div
|
||||
className={[
|
||||
'transition-all ml-8 duration-150 ease-out',
|
||||
|
||||
// enabled
|
||||
currentLevel === id && 'opacity-100 ml-0 delay-150',
|
||||
currentLevel === id && 'opacity-100 ml-0 delay-150 h-auto',
|
||||
// move menu back to margin-left
|
||||
currentLevel === 'home' && 'ml-12',
|
||||
|
||||
// disabled
|
||||
currentLevel !== 'home' && currentLevel !== id ? '-ml-8' : '',
|
||||
currentLevel !== id ? 'opacity-0 invisible absolute' : '',
|
||||
currentLevel !== id ? 'opacity-0 invisible absolute h-0 overflow-hidden' : '',
|
||||
].join(' ')}
|
||||
>
|
||||
<div className={'w-full flex flex-col gap-0 sticky top-8'}>
|
||||
|
||||
Reference in new issue
Block a user