Skip to content

Prevent scrollbars in dashboard Events grid cells - #20425

Merged
David Pine (IEvangelist) merged 1 commit into
mainfrom
dashboard-events-grid-no-scrollbars
Sep 24, 2026
Merged

David Pine (IEvangelist) merged 1 commit into
mainfrom
dashboard-events-grid-no-scrollbars

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Description

The trace details Events grid showed scrollbars inside multiline cells when span events contained nested attribute grids. The resize handles inside those grids extended the cells' scrollable area beyond their visible content.

Multiline property-grid cells now clip overflow instead of creating scroll panes. Event names and attributes remain visible, with the existing text visualizer available for truncated values.

Screenshots / Recordings

Before: scrollbars in the Events cells After: no cell scrollbars
Events grid before, showing cell scrollbars Events grid after, without cell scrollbars

User-facing usage

Open a trace, select a span with attributed events, and expand Events. For example, the Stress playground's Gen AI evaluations command produces five events with nested attributes.

Validation: dotnet build src\Aspire.Dashboard\Aspire.Dashboard.csproj --no-restore /p:SkipNativeBuild=true passed. Verified in the browser that all five events and their attributes are present and none of the ten multiline Events cells are scrollable.

Fixes # (issue)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20425

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20425"

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

13 / 99 PR test projects · 2 PR jobs, from 1 changed file.

Selected PR test projects (13 / 99)

Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests

Selected PR jobs (2)

extension-e2e, native-dashboard-validation


How these were chosen — grouped by what changed

⚠️ 12 of the 13 selected test projects come from a single change — src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.css.

🔧 src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.css (changed source)
→ 12 via the project graph: Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.Azure.Kubernetes.Tests (3 hops), Aspire.Hosting.Azure.Tests (2 hops), Aspire.Hosting.Blazor.Tests (2 hops), Aspire.Hosting.Dotnet.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests (2 hops), Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests (2 hops)

📦 affected project Aspire.Dashboard
→ 1 test: Aspire.Templates.Tests

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit b0bf3f5.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused visual-only CSS change matches the described behavior without introducing functional concerns.

Review effort: Balanced
Findings: None

What changed in this PR

Prevents nested resize handles from creating scrollbars in multiline dashboard Events cells.

Changes:

  • Targets multiline property-grid cells via their multiline attribute.
  • Clips overflow instead of creating scrollable areas.
File Description
src/​Aspire.Dashboard/​Components/​Controls/​PropertyGrid.razor.css Clips overflow in multiline property-grid cells.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@IEvangelist
David Pine (IEvangelist) merged commit 7f59c5c into main Sep 24, 2026
157 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 14.0 milestone Sep 24, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch taken

docs_optional → false positive (no allowlist category needed — no actual user-facing doc surface)

Triggered signals (2)

  • pr_body_has_cli_flag_mention — evidence hint: "...re.Dashboard.csproj --no-restore /p:SkipNativeBuild=true passed. Verified in the browser th...". This matched the MSBuild validation command (/p:SkipNativeBuild=true`) the author ran locally to verify the fix, not an Aspire CLI flag. There is no new or changed CLI surface.
  • pr_body_has_user_facing_section — evidence hint: the PR body's ### User-facing usage heading: "Open a trace, select a span with attributed events, and expand Events...". This section only describes manual repro/validation steps for the existing Events grid feature; it introduces no new documented behavior, option, or page.

Why no docs update is needed

The only changed file is src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.css (2 additions / 2 deletions):

-::deep.property-grid td.multiline-text {
-    overflow-x: hidden !important;
+.property-grid ::deep td[multiline] {
+    overflow: clip;
 }

This is a pure CSS bug fix: multiline property-grid cells (used inside the trace details Events grid) previously showed scrollbars when nested attribute grids' resize handles extended the cell's scrollable area beyond its visible content. The fix clips overflow instead. No new feature, option, API, page, or documented behavior was added or changed — it only corrects a rendering glitch in an already-existing, already-screenshotted UI area (src/frontend/src/content/docs/dashboard/explore.mdx already documents the Trace details/span-event grid without describing scrollbar behavior one way or the other).

PR/review comment threads were checked and contain only bot-generated dogfood/test-selector comments — no reviewer discussion of docs-relevant nuance.

Both triggered signals are confirmed false positives for this specific PR: the flag-mention is a

(summary truncated)

@JamesNK

Copy link
Copy Markdown
Member Author

/backport to release/13.6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/13.6 (link to workflow run)

Jose Perez Rodriguez (joperezr) pushed a commit that referenced this pull request Sep 24, 2026
)

Backport of #20425 to release/13.6

/cc @JamesNK

## Customer Impact

Trace Events grids show scrollbars inside multiline cells when span
events contain nested attribute grids, obscuring the intended
presentation.

## Testing

`dotnet build src\Aspire.Dashboard\Aspire.Dashboard.csproj --no-restore
/p:SkipNativeBuild=true` passed; browser validation confirmed all five
events and attributes remained present and none of the ten multiline
cells were scrollable.

## Risk

Low. The change is localized CSS for multiline property-grid cell
overflow, with the existing text visualizer retained for truncated
values.

## Regression?

Yes

Co-authored-by: James Newton-King <[email protected]>
Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants