Skip to content

Commit 8fcf305

Browse files
committed
fix: add right shadow to sidebar
1 parent d7fc4c0 commit 8fcf305

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adminforth/spa/src/components/Sidebar.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@
192192
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
193193
overflow: hidden; /* Prevent content from showing during animation */
194194
will-change: width, transform;
195+
/* Right-side only shadow */
196+
box-shadow: 12px 0px 14px -5px rgba(0, 0, 0, 0.25);
197+
}
198+
:deep(.dark) .sidebar-container {
199+
/* Slightly stronger in dark mode */
200+
box-shadow: 12px 0px 14px -5px rgba(0, 0, 0, 0.45);
195201
}
196202
197203
.sidebar-collapsed {

0 commit comments

Comments
 (0)