npm run prettier-fix
This commit is contained in:
parent
bff09e0409
commit
0a3b994540
1 changed files with 29 additions and 5 deletions
|
|
@ -72,7 +72,10 @@ export function useDraggableSidebar(initialWidth: number) {
|
|||
(e: MouseEvent) => {
|
||||
if (!isDragging) return;
|
||||
const deltaX = e.clientX - dragStartX.current;
|
||||
const newWidth = Math.max(200, Math.min(600, dragStartWidth.current + deltaX));
|
||||
const newWidth = Math.max(
|
||||
200,
|
||||
Math.min(600, dragStartWidth.current + deltaX),
|
||||
);
|
||||
setWidth(newWidth);
|
||||
},
|
||||
[isDragging],
|
||||
|
|
|
|||
Loading…
Reference in a new issue