Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Mar 5, 2024
1 parent d45d1ae commit bce3e73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,18 @@ class="fi-main-sidebar"
return
}
const sidebarWrapper = document.querySelector('.fi-main-sidebar .fi-sidebar-nav')
const sidebarWrapper = document.querySelector(
'.fi-main-sidebar .fi-sidebar-nav',
)
if (!sidebarWrapper) {
return
}
sidebarWrapper.scrollTo(
0,
activeSidebarItem.offsetTop - window.innerHeight / 2,
activeSidebarItem.offsetTop -
window.innerHeight / 2,
)
}, 0)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
<li
x-data="{ label: @js($subNavigation ? "sub_navigation_{$label}" : $label) }"
data-group-label="{{ $label }}"
{{ $attributes->class([
'fi-sidebar-group flex flex-col gap-y-1',
'fi-active' => $active,
]) }}
{{
$attributes->class([
'fi-sidebar-group flex flex-col gap-y-1',
'fi-active' => $active,
])
}}
>
@if ($label)
<div
Expand Down

0 comments on commit bce3e73

Please sign in to comment.