Repository navigation
Unify dashboard splitter styling - #22718
James Newton-King (JamesNK) wants to merge 4 commits into
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22718Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22718" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the shared dashboard splitter styling changes.
No open issues 🎉
What changed in this PR
Unifies dashboard splitter styling across the resource selector, Metrics, details panes, GenAI visualizer, and terminal dock while retaining their existing resize logic.
Changes:
- Introduces shared 9 px grab areas, thin idle dividers, and delayed purple hover highlights.
- Replaces page-specific splitter styling with shared rules.
- Uses drag-state styling to show immediate highlights and preserve resize cursors beyond divider bounds.
| File | Description |
|---|---|
src/Aspire.Dashboard/wwwroot/css/design.css |
Defines the shared splitter grab-size token. |
src/Aspire.Dashboard/wwwroot/css/controls.css |
Centralizes divider geometry, highlights, focus styling, and cursors. |
src/Aspire.Dashboard/Components/Pages/Metrics.razor |
Removes local bar sizing and clarifies mobile collapse behavior. |
src/Aspire.Dashboard/Components/Legacy/Pages/Metrics.razor |
Adopts shared sizing and clarifies mobile collapse behavior. |
src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.js |
Tracks drag state for shared styling and cleanup. |
src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.css |
Aligns handle geometry and header spacing with shared visuals. |
src/Aspire.Dashboard/Components/Layout/TerminalDock.razor |
Replaces Fluent styling classes with the shared handle class. |
src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.js |
Delegates resize cursors to CSS and clears drag styling on disposal. |
src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css |
Adopts shared handle geometry and avoids duplicate divider lines. |
src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor |
Adds the shared splitter handle class. |
src/Aspire.Dashboard/Components/Dialogs/GenAIVisualizerDialog.razor.css |
Removes dialog-specific splitter overrides. |
src/Aspire.Dashboard/Components/Dialogs/GenAIVisualizerDialog.razor |
Removes explicit bar sizing. |
src/Aspire.Dashboard/Components/Controls/SummaryDetailsView.razor |
Uses shared sizing for details splitters. |
Review effort: Balanced
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
3e7bae4 to
81fad41
Compare
This comment has been minimized.
This comment has been minimized.
| <FluentMultiSplitter Style="height:100%" BarSize="5px"> | ||
| <FluentMultiSplitterPane Size="30%"> | ||
| <FluentMultiSplitter Style="height:100%"> | ||
| <FluentMultiSplitterPane Size="30%" Min="250px" Max="500px" Style="min-width: 250px; max-width: 500px"> |
Co-authored-by: Copilot <[email protected]>
Tests selector14 / 101 PR test projects · 2 PR jobs, from 16 changed files. Selected PR test projects (14 / 101)
Selected PR jobs (2)
How these were chosen — grouped by what changed
🔧 🧪 📦 affected project 🔧 🔧 🔧 Job reasons
Selection computed for commit |
|
|
||
| body :is(.fluent-multi-splitter > .fluent-multi-splitter-bar[status="resizable"], .aspire-splitter-handle):hover::after { | ||
| opacity: 1; | ||
| transition: opacity 200ms ease 400ms; |


Description
Dashboard dividers had different grab widths, hover feedback, and resize cursors depending on the page. The resource selector, Metrics, details panes, GenAI visualizer, and terminal dock now share the same styling without replacing their resize logic.
User-facing usage
Select a resource in TestShop, then hover over the divider between the resource list and the workspace. The thin idle line stays visible; after 400 ms, a centered 3 px purple line fades in over 200 ms. Drag anywhere within the transparent 9 px grab area to resize the pane. The highlight appears immediately when dragging and the resize cursor stays visible even if the pointer moves past the divider.
Screenshots / Recordings
These TestShop comparisons show the original and PR styles at rest, after the hover transition finishes, and during a drag. The resource selector uses the same fully settled hover color before and after; the highlight grows from 2 px to 3 px.
Resource selector
Metrics
Structured Logs details
Validation
#512BD4in light mode and#B9AAEEin dark mode at the end of the transition.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash docs?