Repository navigation
[release/17.0] Fix clipped graph controls and hide the game in the previous dashboard - #22268
Conversation
The resource graph sized its SVG viewBox from .resources-summary-layout. On the previous experience's Resources page that element also contains the tab header, and the SVG had no CSS height, so it took the full layout height from its viewBox and pushed the bottom-anchored graph controls below the clipped edge of .resource-tabs. Size the SVG with CSS to fill its container, and measure and observe the graph's own container instead of the page layout. Skip resizing while the graph is hidden, and fit the initial graph the first time it has a size. Fixes #21858
The game is a feature of the new dashboard's overview graph. Remove its Play button and interop method from the previous experience's Resources page, and pass no game strings there so the graph script doesn't attach the game or take the O key from the dashboard's global shortcuts.
Apply the same constrained container and explicit SVG sizing to the new experience's Resources component, which also hosts the graph. Without it the SVG would be sized by the viewBox the script derives from its own container, a resize feedback loop. Extend the ResourceGraph JavaScript tests to cover the initial fit waiting for a sized viewport, the first visible resize fitting the graph, later resizes keeping the user's zoom, and a hidden graph keeping its last viewBox.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22268Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22268" |
Tests selector14 / 101 PR test projects · 2 PR jobs, from 7 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 |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
cbfb8eb
into
release/17.0
|
✅ No documentation update needed. excluded → head_branch_is_backport, title_release_prefix, body_backport_marker (plus supporting base_branch_is_release). Backport of a dashboard fix; docs belong to the original forward PR. No triggered signals (signal_count 0). |
Backport of #22264 to release/17.0
/cc Sébastien Ros (@sebastienros)
Customer Impact
Testing
Risk
Regression?