This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-23 12:59:59 -04:00
1 parent fca3be5416
commit 0fb542b376
2 files changed
+3 -3

No files matched your search

@@ -5,7 +5,7 @@
export let side: 'left' | 'right' = 'right';
export let width = 350;
export let minWidth = 300;
export let maxWidth = 640;
export let maxWidth: number | null = null;
export let storageKey = '';
export let className = '';
export let resizerId = 'controls-resizer';
@@ -14,7 +14,8 @@
let startClientX = 0;
let startWidth = 0;
const clamp = (value: number) => Math.min(maxWidth, Math.max(minWidth, value));
const clamp = (value: number) =>
maxWidth === null ? Math.max(minWidth, value) : Math.min(maxWidth, Math.max(minWidth, value));
const persistWidth = () => {
if (storageKey) {