From cbe5bca6fa54c0bb0991ebe89d40a7538245ed90 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Wed, 29 Jul 2026 13:35:02 +0000 Subject: [PATCH] Fix Agents changes CSS specificity --- .../contrib/changes/browser/media/changesView.css | 7 +++++-- .../changes/browser/media/multiFileDiffEditor.css | 9 +++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/vs/sessions/contrib/changes/browser/media/changesView.css b/src/vs/sessions/contrib/changes/browser/media/changesView.css index 33ea76bead9..07386a33c2a 100644 --- a/src/vs/sessions/contrib/changes/browser/media/changesView.css +++ b/src/vs/sessions/contrib/changes/browser/media/changesView.css @@ -305,7 +305,10 @@ color: var(--vscode-descriptionForeground); } -.changes-file-list .changes-review-comments-badge .codicon { +/* Include the view owner to outrank + * `.monaco-workbench .codicon[class*='codicon-']` and keep both badge icons at + * the compact 12px size instead of the workbench default 16px. */ +.changes-view-body .changes-file-list .changes-review-comments-badge .codicon { font-size: var(--vscode-codiconFontSize-compact); } @@ -318,7 +321,7 @@ color: var(--vscode-descriptionForeground); } -.changes-file-list .changes-agent-feedback-badge .codicon { +.changes-view-body .changes-file-list .changes-agent-feedback-badge .codicon { font-size: var(--vscode-codiconFontSize-compact); } diff --git a/src/vs/sessions/contrib/changes/browser/media/multiFileDiffEditor.css b/src/vs/sessions/contrib/changes/browser/media/multiFileDiffEditor.css index 8b7f5564ba2..71c717f14ad 100644 --- a/src/vs/sessions/contrib/changes/browser/media/multiFileDiffEditor.css +++ b/src/vs/sessions/contrib/changes/browser/media/multiFileDiffEditor.css @@ -29,7 +29,10 @@ pointer-events: none; } -.agent-sessions-workbench .part.editor .multiDiffEntry .header-content { +/* Include the multi-diff owner to outrank the equally specific core + * `.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content` + * rule for the Agents header margin, padding, border, and background. */ +.agent-sessions-workbench .part.editor .multiDiffEditor .multiDiffEntry .header-content { border-radius: var(--vscode-cornerRadius-medium); border: none; background: var(--vscode-sideBarSectionHeader-background); @@ -42,7 +45,9 @@ border-bottom: none; } -.agent-sessions-workbench .part.editor .multiDiffEntry .header-content .file-path .title { +/* The same owner keeps the Agents body font size from tying the core + * `.header-content .file-path .title` 14px rule. */ +.agent-sessions-workbench .part.editor .multiDiffEditor .multiDiffEntry .header-content .file-path .title { font-size: var(--vscode-agents-fontSize-body1); line-height: 22px; }