Notes: foldable menu offset, hidden chat list, Terminal default
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# Foldable menus, hidden chat list, Terminal by default
|
||||
|
||||
## Top bar menus far below the bar on an unfolded foldable
|
||||
|
||||
Cause: `showAppChoiceMenu` (model, mode/permission, thinking, the narrow
|
||||
bar's Chat settings panel, Add chat pane, Claude account) measured its anchor
|
||||
in the root overlay's coordinates, then laid the panel out inside a
|
||||
`SafeArea`. On Android the app draws edge to edge, so the overlay's
|
||||
`MediaQuery.padding.top` is the status bar (and cutout): the `SafeArea`
|
||||
moved the layout's origin down by that inset while the anchor rect stayed in
|
||||
overlay coordinates, so every panel opened one inset (~50 dp) too low. On a
|
||||
foldable's narrow pane the selectors sit in the Chat settings panel, itself
|
||||
such a menu, so a selector's menu opened two insets below the bar. Phones
|
||||
never showed it (they get bottom sheets below 600 dp) and neither did the
|
||||
web (no insets). Overflow menus (`AppMenuAnchor` / `MenuAnchor`) were right.
|
||||
|
||||
Fix: `AnchoredMenuLayout` (`lib/ui/adaptive/anchored_menu_layout.dart`) lays
|
||||
out in the overlay's own coordinates and treats the insets (plus the
|
||||
keyboard) only as bounds; a half-opened hinge confines the panel to the
|
||||
anchor's side (`DisplayFeatureSubScreen`). The panel's content has the
|
||||
padding removed, so a sheet's own `SafeArea` adds nothing inside it.
|
||||
Tests: `test/ui/adaptive/app_popups_foldable_test.dart` (884x1104, 52/24
|
||||
insets, a fold; wide and narrow panes; above-anchor; hinge).
|
||||
|
||||
Captures on web: `?inset=52,24&fold=1` (`tool/fixture_host/inset_view.dart`)
|
||||
gives the fixture app an Android phone's insets and a fold.
|
||||
|
||||
## Hiding the chat list
|
||||
|
||||
Beside an open chat on a wide window the list can be hidden entirely:
|
||||
Ctrl+B (Cmd+B on Apple; a focused terminal keeps Ctrl+B), Hide chat list in
|
||||
the list's bar and in the pane's More menu. While hidden the top-left pane's
|
||||
bar starts with Show chat list. `ListDetailPanes.listHidden` slides the list
|
||||
to zero width (`Motion.standard`, instant with reduced motion) and brings it
|
||||
back in its previous expanded or compact mode; the divider is not offered
|
||||
while hidden. Device-local: `pipelines.chat.listHidden.v1`
|
||||
(`ChatListHiddenController`). Ctrl/Alt+K and Ctrl+Tab are unaffected.
|
||||
|
||||
## Terminal is the default design
|
||||
|
||||
No stored (or an unknown) design id resolves to Terminal, including the boot
|
||||
spinner and detached windows (same controller). A stored choice is kept; the
|
||||
former Default keeps its stored id `default` and is now labelled Classic in
|
||||
the picker.
|
||||
Reference in New Issue
Block a user