Skip to content

Commit b0d642f

Browse files
committed
updates
1 parent 0274cd0 commit b0d642f

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

apps/app/src/routes/_protected/connection/$resourceId/table/-components/sidebar/constants.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { type } from 'arktype'
22
import { createWebStorageValue } from 'seitu/web'
33

4-
export const SIDEBAR_FOLD_TRANSITION = {
5-
duration: 0.25,
6-
ease: [0.32, 0.72, 0, 1],
7-
} as const
8-
94
export const SIDEBAR_MIN_WIDTH = 180
105
export const SIDEBAR_MAX_WIDTH = 420
116
export const SIDEBAR_DEFAULT_WIDTH = 256

apps/app/src/routes/_protected/connection/$resourceId/table/-components/sidebar/sidebar.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { getConnectionResourceStore } from '~/entities/connection/store'
1717

1818
import {
1919
SIDEBAR_DEFAULT_WIDTH,
20-
SIDEBAR_FOLD_TRANSITION,
2120
SIDEBAR_MAX_WIDTH,
2221
SIDEBAR_MIN_WIDTH,
2322
tablesSidebarOpenValue,
@@ -84,7 +83,14 @@ export function TablesSidebar() {
8483
animate={{
8584
width: isOpen ? width : 0,
8685
}}
87-
transition={isResizing ? { duration: 0 } : SIDEBAR_FOLD_TRANSITION}
86+
transition={
87+
isResizing
88+
? { duration: 0 }
89+
: {
90+
duration: 0.25,
91+
ease: [0.32, 0.72, 0, 1],
92+
}
93+
}
8894
className="relative h-full shrink-0 overflow-hidden"
8995
>
9096
<div className="flex h-full flex-col pr-2 text-foreground" style={{ width }}>

0 commit comments

Comments
 (0)