fix: close tab overflow popover on window resize

When the window is resized while the tab overflow popover is open,
the popover would shift to the wrong position and no longer align
correctly. This change automatically closes the popover on window
resize, which is the standard UX pattern used by most UI libraries.

Fixes #1029

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
mathuo
2025-12-29 20:41:54 +00:00
parent 2b3575df48
commit ba1ecff8e6

View File

@@ -68,6 +68,9 @@ export class PopupService extends CompositeDisposable {
return; // clicked within popover
}
this.close();
}),
addDisposableListener(window, 'resize', () => {
this.close();
})
);