You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: auto-toggle Chromium app mode for small viewports
Chromium's minimum window size (~500px wide, ~200px tall) prevents
resizing to mobile viewports like 390x844. Launching with --app mode
removes the tab bar and toolbar chrome, allowing smaller windows.
Changes:
- PatchDisplay now automatically enables --app=https://start.duckduckgo.com
when width < 500 or height < 200, and disables it for larger sizes
- Add ensureAppMode() to toggle the --app flag in the runtime flags file
and trigger a Chromium restart when the flag state changes
- Add RemoveFlagsByPrefix and HasFlagWithPrefix helpers to chromiumflags
- Add hasAppFlag helper to chromium-launcher
- Add modelines for 392x844 and 768x1024 at 60/30/25 Hz to xorg.conf
for mobile and tablet viewport support
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments