Skip to content

Commit 126b949

Browse files
committed
Make content sidebar fixed on large screens
Updated the .content-sidebar_desktop CSS to be hidden by default and fixed with specific positioning and sizing on large screens. This improves layout consistency and sidebar usability for desktop users.
1 parent 334ef89 commit 126b949

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

resources/css/theme.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262

6363
/* Content Sidebar Dropdown Fix */
6464
.content-sidebar_desktop {
65+
display: none;
66+
@variant lg {
67+
position: fixed !important;
68+
@apply top-16 left-0 w-72 flex flex-col z-40 h-svh;
69+
}
6570
.tree-node-item {
6671
.tree-node-actions .tree-node-action {
6772
@apply fixed! -ms-5!;

resources/dist/inspirecms.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/livewire/content-sidebar.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class="p-4 rounded-full shadow-md"
5555
</x-filament::modal>
5656

5757
<!-- Static sidebar for desktop -->
58-
<div class="content-sidebar_desktop hidden lg:fixed! lg:top-y-16 lg:left-0 lg:w-72 lg:flex! lg:flex-col! z-40 h-svh">
58+
<div class="content-sidebar_desktop">
5959
<div class="flex grow flex-col gap-y-5 overflow-y-auto overflow-x-visible border-e border-gray-200 bg-white py-2 dark:bg-gray-900 dark:border-gray-700">
6060
<x-inspirecms-support::tree-node.service-side-tree
6161
:nodes="$nodes"

0 commit comments

Comments
 (0)