Skip to content

Commit 6d6ac9a

Browse files
committed
fix(sidebar): width animation
1 parent 358e632 commit 6d6ac9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/ui/src/components/va-sidebar/VaSidebar.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ export default defineComponent({
114114
backgroundColor,
115115
backgroundImage: props.gradient ? getGradientBackground(backgroundColor) : undefined,
116116
overflowX: currentMenuWidth.value === sidebarWidth.value ? undefined : 'hidden' as const,
117+
width: sidebarWidth.value,
118+
minWidth: sidebarWidth.value,
117119
}
118120
})
119121
@@ -196,11 +198,11 @@ export default defineComponent({
196198
}
197199
198200
&--animated-right {
199-
justify-content: flex-start;
201+
justify-content: flex-end;
200202
}
201203
202204
&--animated-left {
203-
justify-content: flex-end;
205+
justify-content: flex-start;
204206
}
205207
206208
&--minimized {

0 commit comments

Comments
 (0)