Add pop-out and full screen to the stream's right-click menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 22:35:52 +02:00
co-authored by Claude Opus 5.5
parent e0e900625d
commit b5dda4e1c2
2 changed files with 9 additions and 2 deletions
+6 -1
View File
@@ -124,7 +124,12 @@
// Right-click on the picture
let showStats = $state(false);
const streamMenu = (e: MouseEvent) => menu.show(e, [{ label: 'Stats for nerds', checked: showStats, action: () => (showStats = !showStats) }]);
const streamMenu = (e: MouseEvent) => menu.show(e, [
{ label: 'Open in a separate window', action: popOut },
{ label: 'Full screen', action: fullscreen },
{ separator: true, label: '' },
{ label: 'Stats for nerds', checked: showStats, action: () => (showStats = !showStats) }
]);
let frame = $state<HTMLElement>();
function fullscreen() {