Skip to content

Commit 1cfe7fa

Browse files
committed
fix: prevent footer layout issues when sidebar is collapsed
1 parent 19190ab commit 1cfe7fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

resources/views/easy-footer.blade.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
44
@endphp
55
<footer
6+
x-data="{ sidebarCollapsed: false }"
7+
x-init="
8+
sidebarCollapsed = $store.sidebar?.isOpen === false;
9+
$watch('$store.sidebar.isOpen', value => {
10+
sidebarCollapsed = value === false;
11+
});
12+
"
13+
x-show="!(sidebarCollapsed && @js($footerPosition === 'sidebar.footer' || $footerPosition === 'sidebar'))"
14+
x-transition
615
@class([
716
'fi-footer my-3 flex flex-wrap items-center justify-center text-sm text-gray-500 dark:text-gray-400',
817
'border-t border-gray-200 dark:border-gray-700 text-center p-2' => $footerPosition === 'sidebar' || $footerPosition === 'sidebar.footer' || $borderTopEnabled === true,

0 commit comments

Comments
 (0)