Skip to content

Commit

Permalink
fix(sidebar): width animation
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Nov 29, 2023
1 parent 358e632 commit 6d6ac9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ui/src/components/va-sidebar/VaSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export default defineComponent({
backgroundColor,
backgroundImage: props.gradient ? getGradientBackground(backgroundColor) : undefined,
overflowX: currentMenuWidth.value === sidebarWidth.value ? undefined : 'hidden' as const,
width: sidebarWidth.value,
minWidth: sidebarWidth.value,
}
})
Expand Down Expand Up @@ -196,11 +198,11 @@ export default defineComponent({
}
&--animated-right {
justify-content: flex-start;
justify-content: flex-end;
}
&--animated-left {
justify-content: flex-end;
justify-content: flex-start;
}
&--minimized {
Expand Down

0 comments on commit 6d6ac9a

Please sign in to comment.