From 63dc5756d5c3d200b1b40f287ba7db3cca4965fe Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sat, 14 Nov 2026 15:10:59 -0800 Subject: [PATCH] Leave the presets out of Visual in the phone's More sheet The More sheet already shows the dock's Visual Presets tray right above Visual, so the panel's own copy is hidden on the phone shell. Co-authored-by: Manjunath Paparaju --- docs/CURRENT-STATE.md | 3 ++- src/ui/styles/visual-panel.css | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/CURRENT-STATE.md b/docs/CURRENT-STATE.md index 9ce4f4f74..88cd091ad 100644 --- a/docs/CURRENT-STATE.md +++ b/docs/CURRENT-STATE.md @@ -658,7 +658,8 @@ is a card (`src/ui/styles/visual-panel.css`) whose header row ends in an on/off pill worded in the current language. The presets and chips call the same Display store actions as the dock's Visual Presets tray, which stays on desktop and phone as before, along with Location; voice `Visual Presets` -still opens that tray. In Cockpit the groups Cockpit's Display popover takes +still opens that tray. On a phone the More sheet shows that tray right above +Visual, so Visual leaves out its own presets and chips there. In Cockpit the groups Cockpit's Display popover takes leave the panel as before and keep their own styling there. Scope has an Opacity slider (`#scope-opacity-slider`, 0–100%, default 100%) diff --git a/src/ui/styles/visual-panel.css b/src/ui/styles/visual-panel.css index 8a1339d45..0e5537d60 100644 --- a/src/ui/styles/visual-panel.css +++ b/src/ui/styles/visual-panel.css @@ -123,6 +123,12 @@ cursor: default; } +/* The phone's More sheet shows the dock's Visual Presets tray right above + Visual, so the panel leaves out its own copy there. */ +body.mobile-shell #pp-toggles .visual-presets { + display: none; +} + /* The body is display: contents, so its children are the panel's own flex items: keep them full width and unshrunk. */ #pp-toggles .pp-panel-body > * {