Skip to content

Commit babc035

Browse files
committed
Sidebar menu full width in mobile and fix animation when sidebar collapses
1 parent 6bcc2c6 commit babc035

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/pages/products.page.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<aside
66
:class="[
77
'flex flex-col bg-white border-r border-gray-200 shrink-0 transition-all duration-300 ease-in-out',
8-
sidebarOpen ? 'w-60' : 'w-16'
8+
sidebarOpen ? 'md:w-60 w-full' : 'w-16'
99
]"
1010
class="sticky top-0 h-screen z-40 overflow-hidden"
1111
>
@@ -38,7 +38,7 @@
3838
<button v-for="item in navItems" :key="item.key"
3939
:class="[
4040
'w-full flex items-center rounded-xl transition-all cursor-pointer group',
41-
sidebarOpen ? 'px-3 py-2.5 gap-3' : 'px-0 py-2.5 justify-center',
41+
sidebarOpen ? 'px-3 py-2.5 gap-3' : 'px-3 py-2.5',
4242
item.active
4343
? 'bg-orange-50 text-orange-500'
4444
: 'text-gray-500 hover:bg-gray-50 hover:text-gray-900'

0 commit comments

Comments
 (0)