From 002751e524aea63a22ff8a74aa48ebabd2c51569 Mon Sep 17 00:00:00 2001 From: Mr0Bread <55754540+Mr0Bread@users.noreply.github.com> Date: Sat, 21 Nov 2026 18:52:31 +0200 Subject: [PATCH] refactor(agents): remove CSS rules nothing reads (#5055) Three CSS rules in the agents feature can never apply, so they only add to the files: - `ReferenceChip.module.css` `.selected`: no `styles.selected` (or `chipStyles.selected`) anywhere in `src/`. - `SkillsPage.module.css` `.link` and `.link:hover`: `SkillsPage.tsx` never reads `styles.link`. - `Session.module.css`: the first `.questionChoices` block (`display`, `flex-direction`, `gap`) is overridden property-for-property by the second `.questionChoices` block later in the file (same selector, same specificity, no media query), so the computed style is unchanged. 22 lines removed, no behaviour change. Co-authored-by: Mr0Bread <55754540+Mr0Bread@users.noreply.github.com> --- src/features/agents/ReferenceChip.module.css | 4 ---- src/features/agents/Session.module.css | 5 ----- 2 files changed, 9 deletions(-) diff --git a/src/features/agents/ReferenceChip.module.css b/src/features/agents/ReferenceChip.module.css index e969b4f0c..b478e4663 100644 --- a/src/features/agents/ReferenceChip.module.css +++ b/src/features/agents/ReferenceChip.module.css @@ -75,10 +75,6 @@ .missing .name { text-decoration: line-through; } -/* Selected together with the text around it in the composer. */ -.selected { - background: var(--bg-editor-selection); -} /* A `/command` or skill. */ .command { display: inline; diff --git a/src/features/agents/Session.module.css b/src/features/agents/Session.module.css index 61787c356..5eadb784f 100644 --- a/src/features/agents/Session.module.css +++ b/src/features/agents/Session.module.css @@ -1636,11 +1636,6 @@ border-radius: var(--radius-row); } /* Each option is a card of its own: separate targets, not one list with hairlines. */ -.questionChoices { - display: flex; - flex-direction: column; - gap: var(--space-1-5); -} .question .questionChoices > * { border: 1px solid var(--border); border-radius: var(--radius-row);