fix: clip list width edge cases (falsy check, narrow-window clamp)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-22 16:50:57 -04:00
parent b371ec6c3e
commit 923c7b0e23
2 changed files with 9 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ export async function loadPreferences(): Promise<void> {
const savedClipListPosition = await store.get<'bottom' | 'left'>('clipListPosition');
const savedClipListWidth = await store.get<number>('clipListWidth');
if (savedClipListPosition) preferences.clipListPosition = savedClipListPosition;
if (savedClipListWidth) preferences.clipListWidth = savedClipListWidth;
if (savedClipListWidth != null) preferences.clipListWidth = savedClipListWidth;
})();
await loadPromise;
}