From 69a3a88b85ed0a56bf442af4fec420c871d337fa Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 5 May 2026 23:07:35 +0300 Subject: Add fullscreen crop mode toggle (hotkey c) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - In fullscreen, press 'c' to toggle object-fit between contain (default) and fill (stretches to fill, no aspect ratio preservation). - Adds .player.crop-mode video { object-fit: fill; } in player.css. - Adds toggleCrop() in player.js that toggles a crop-mode class and a small UI indicator (✂️) in the controls, visible only in fullscreen. - Resets crop mode back to contain when exiting fullscreen (via Escape, minimize, or fullscreenchange event). - Wires the 'c' hotkey in keyboard.js and registers toggleCrop in app.js. - Adds crop-indicator to index.html and detach.html controls, and documents the shortcut in the help modal. --- web/index.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/index.html') diff --git a/web/index.html b/web/index.html index f3e37a1..4b90f92 100644 --- a/web/index.html +++ b/web/index.html @@ -90,6 +90,7 @@ +