We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb1e7c commit fbdd2c4Copy full SHA for fbdd2c4
src/Exceptionless.Web/ClientApp/src/routes/(app)/(components)/layouts/Sidebar.svelte
@@ -9,8 +9,6 @@
9
}
10
11
let { isLargeScreen, isSidebarOpen = $bindable(), routes }: Props = $props();
12
-
13
- const showSidebar = $derived(!isLargeScreen && isSidebarOpen);
14
const dashboardRoutes = routes.filter((route) => route.group === 'Dashboards');
15
16
function onBackdropClick() {
@@ -41,7 +39,7 @@
41
39
</aside>
42
40
43
<button
44
- class="fixed inset-0 z-10 bg-gray-900/50 dark:bg-gray-900/90 {showSidebar ? '' : 'hidden'}"
+ class="fixed inset-0 z-10 bg-gray-900/50 dark:bg-gray-900/90 {!isLargeScreen && !!isSidebarOpen ? '' : 'hidden'}"
45
title="Close sidebar"
46
aria-label="Close sidebar"
47
onclick={onBackdropClick}
0 commit comments