Revert "Enhancement: Preserve scroll position in navbar to improve UX"
This commit is contained in:
parent
952aed3c49
commit
d9f1a7c4d0
@ -44,15 +44,8 @@
|
||||
this.theme = 'system';
|
||||
document.documentElement.classList.remove('dark');
|
||||
}
|
||||
},
|
||||
saveScrollPosition() {
|
||||
localStorage.setItem('navbarScrollPosition', this.$refs.navbar.scrollTop);
|
||||
},
|
||||
restoreScrollPosition() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.navbar.scrollTop = localStorage.getItem('navbarScrollPosition') || 0;
|
||||
});
|
||||
}}" @livewire:load="restoreScrollPosition()" @livewire:update="saveScrollPosition()">
|
||||
}
|
||||
}">
|
||||
<div class="flex pt-6 pb-4 pl-3">
|
||||
<div class="flex flex-col w-full">
|
||||
<div class="text-2xl font-bold tracking-wide dark:text-white">Coolify</div>
|
||||
@ -90,7 +83,7 @@
|
||||
<div class="px-2 pt-2 pb-7">
|
||||
<livewire:switch-team />
|
||||
</div>
|
||||
<ul role="list" class="flex flex-col flex-1 gap-y-7" x-ref="navbar">
|
||||
<ul role="list" class="flex flex-col flex-1 gap-y-7">
|
||||
<li class="flex-1 overflow-x-hidden">
|
||||
<ul role="list" class="flex flex-col h-full space-y-1.5">
|
||||
@if (isSubscribed() || !isCloud())
|
||||
@ -427,4 +420,4 @@ class="flex items-center px-6 py-3 text-sm font-semibold leading-6 text-gray-900
|
||||
</a>
|
||||
</li> --}}
|
||||
</ul>
|
||||
</nav>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user