Skip to content

Commit 4593de2

Browse files
committed
Merge branch 'develop'
* develop: update content-sidebar layout if have alert
2 parents 1d7c0e1 + 5d10711 commit 4593de2

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

resources/css/alerts.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@
1919
~ .fi-layout .fi-topbar, ~ .fi-simple-layout > .absolute {
2020
@apply top-10 !important;
2121
}
22+
23+
~ .fi-layout .content-sidebar .icon-btn, ~ .fi-layout .content-sidebar .content-sidebar_desktop {
24+
@apply top-28 !important;
25+
}
2226
}
2327
}

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<div x-data="{
1010
sidebarExpanded: $store.contentSidebar.isOpen,
1111
}"
12+
class="content-sidebar"
1213
>
1314
<div x-show="sidebarExpanded" x-cloak
1415
x-transition:enter="transition-opacity ease-int duration-300"
@@ -23,7 +24,7 @@ class="relative z-30 lg:hidden"
2324
>
2425
<div class="fixed inset-0 bg-gray-900/80" aria-hidden="true" :class="{'translate-x-0': sidebarExpanded, '-translate-x-full': !sidebarExpanded}"></div>
2526
<div class="fixed inset-0 flex">
26-
<div class="relative mr-16 flex w-full max-w-xs flex-1 top-0">
27+
<div class="relative mr-16 flex w-full max-w-xs flex-1 top-0 content-sidebar_mobile">
2728
<div class="absolute left-full flex w-16 justify-center pt-5">
2829
<button type="button" class="-m-2.5 p-2.5" @click="sidebarExpanded = false">
2930
<span class="sr-only">Close sidebar</span>
@@ -51,7 +52,7 @@ class="relative z-30 lg:hidden"
5152
</div>
5253
</div>
5354
</div>
54-
<div class="hidden lg:fixed lg:top-16 lg:bottom-0 lg:z-30 lg:flex lg:w-72 lg:flex-col">
55+
<div class="hidden lg:fixed lg:top-16 lg:bottom-0 lg:z-30 lg:flex lg:w-72 lg:flex-col content-sidebar_desktop">
5556
<div class="flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 bg-white py-2 dark:bg-gray-900 dark:border-gray-700">
5657
<div class="px-1 pb-2">
5758
{{ $this->localeSwitcher }}
@@ -78,7 +79,7 @@ class="px-1"
7879
x-transition:leave="transition-opacity ease-linear duration-300"
7980
x-transition:leave-start="opacity-100"
8081
x-transition:leave-end="opacity-0"
81-
class="fixed top-16 right-0 z-10 px-2 py-2 lg:hidden">
82+
class="fixed top-16 right-0 z-10 px-2 py-2 lg:hidden icon-btn">
8283
<button type="button"
8384
class="p-4 rounded-full shadow-md bg-white ring-1 ring-gray-300 hover:bg-gray-100 dark:bg-gray-600 dark:ring-gray-400/20 dark:hover:text-gray-400 dark:ring-gray-400/20"
8485
@click="sidebarExpanded = !sidebarExpanded"

0 commit comments

Comments
 (0)