From bce3e73a0e6c5f5e0bf30c781bcf98c30c816e32 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Tue, 5 Mar 2024 14:31:07 +0000 Subject: [PATCH] cs --- .../resources/views/components/layout/index.blade.php | 7 +++++-- .../resources/views/components/sidebar/group.blade.php | 10 ++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/panels/resources/views/components/layout/index.blade.php b/packages/panels/resources/views/components/layout/index.blade.php index 6adeb1d466..ef74512dde 100644 --- a/packages/panels/resources/views/components/layout/index.blade.php +++ b/packages/panels/resources/views/components/layout/index.blade.php @@ -112,7 +112,9 @@ 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 @@ -120,7 +122,8 @@ class="fi-main-sidebar" sidebarWrapper.scrollTo( 0, - activeSidebarItem.offsetTop - window.innerHeight / 2, + activeSidebarItem.offsetTop - + window.innerHeight / 2, ) }, 0) }) diff --git a/packages/panels/resources/views/components/sidebar/group.blade.php b/packages/panels/resources/views/components/sidebar/group.blade.php index 5795968842..c69ef4b69a 100644 --- a/packages/panels/resources/views/components/sidebar/group.blade.php +++ b/packages/panels/resources/views/components/sidebar/group.blade.php @@ -16,10 +16,12 @@
  • 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)