host: expand isolated view to full width with floating top bar#4626
Open
host: expand isolated view to full width with floating top bar#4626
Conversation
Adds an "expand" toggle on the top stack-item's CardHeader that morphs
the card to full width below a floating top bar. The bar gains glass-
morphism while expanded and the CardHeader portals into a center pill
in the bar (replacing the inline header). View-transition pins the bar
across the morph so the expand/collapse animates as a single shape.
Positioning is driven by a single CSS variable, --stack-padding-top
(item-height + 2 × spacing), shared by:
* .submode-layout-top-bar height (locked, so portaled content can't
push it taller)
* .operator-mode-stack padding-top when an item is expanded (forced
full value, overriding stack-medium/small-padding-top reductions
that are correct for the buried-stack visual but not when expanded)
* .item.expanded inset: 0 of .inner (which sits at y=stack-padding-top)
Result: card top sits flush at bar bottom — pixel-identical to host-mode's
in-flow card top. No calc(100vh - X), no JS measurement, no !important.
Buried siblings fade when a top card is expanded; neighbor-stack-trigger
arrows hide; cards-grid (Workspace "All Cards") opts out of expand since
its child tile overlays would overlap. Per-card expand intent persists on
operatorModeStateService (keyed by stack-item id) so it survives buries
and restores when the card pops back to the top.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Demo: https://screen.studio/share/zXdc2bHg
Adds an "expand" toggle on the top stack-item's CardHeader that morphs the card to full width below a floating top bar. The bar gains glass- morphism while expanded and the CardHeader portals into a center pill in the bar (replacing the inline header). View-transition pins the bar across the morph so the expand/collapse animates as a single shape.
Positioning is driven by a single CSS variable, --stack-padding-top (item-height + 2 × spacing), shared by:
Result: card top sits flush at bar bottom — pixel-identical to host-mode's in-flow card top. No calc(100vh - X), no JS measurement, no !important.
Buried siblings fade when a top card is expanded; neighbor-stack-trigger arrows hide; cards-grid (Workspace "All Cards") opts out of expand since its child tile overlays would overlap. Per-card expand intent persists on operatorModeStateService (keyed by stack-item id) so it survives buries and restores when the card pops back to the top.