Skip to content

Commit

Permalink
prevent scroll on sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Dec 14, 2023
1 parent 69ae311 commit c17c1e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions publish/resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ createApp({
max_keep_alive: 10,
transform_anchors: false,
progress_bar: true,
view_transitions: true
})
.component("Swiper", Swiper)
.component("SwiperSlide", SwiperSlide)
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/includes/aside.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class="block w-full font-bold"
</Link>
</header>

<nav class="flex-1 py-6 overflow-y-auto filament-sidebar-nav">
<div>
<nav class="flex-1 py-6 overflow-y-auto filament-sidebar-nav" @preserveScroll('sidebar')>
<div >
@include('tomato-admin::layouts.includes.menu')
</div>
</nav>
Expand Down

0 comments on commit c17c1e6

Please sign in to comment.