Repository navigation
dev: make the severity-legend chips fill the row like the thold legend - #395
Merged
Merged
Conversation
The syslog chips rendered small because .syslogLegendItem never set a width, so a severity class's leaked width kept each grid item at content size, and the .syslogLegendFooter wrapper had no CSS so it shrink-wrapped. Mirror the thold fix: add box-sizing/width:100%/min-width:0 to the legend item and a full-width table rule for the footer, across all per-theme css files and the legend.css fallback.
TheWitness
requested review from
bmfmancini and
xmacan
and
a balanced review from Copilot
October 8, 2026 02:45
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The functional CSS change is scoped and consistent; only optional deduplication remains.
9 open findings
Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New Centralize duplicated footer layout rule in search.css · New
What changed in this PR
Updates severity legends so chips fill grid rows consistently across all themes.
Changes:
- Adds full-width sizing to legend chips.
- Applies footer sizing across theme and fallback stylesheets.
- Documents the change.
| File | Description |
|---|---|
CHANGELOG.md |
Records the legend layout update. |
css/classic.css |
Updates classic-theme legend sizing. |
css/dark.css |
Updates dark-theme legend sizing. |
css/deepness.css |
Updates deepness-theme legend sizing. |
css/legend.css |
Updates fallback legend sizing. |
css/midwinter.css |
Updates midwinter-theme legend sizing. |
css/modern.css |
Updates modern-theme legend sizing. |
css/paper-plane.css |
Updates paper-plane-theme legend sizing. |
css/paw.css |
Updates paw-theme legend sizing. |
css/sunrise.css |
Updates sunrise-theme legend sizing. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
bmfmancini
previously approved these changes
Oct 8, 2026
…ll-width # Conflicts: # CHANGELOG.md
xmacan
previously approved these changes
Oct 8, 2026
…ntralized in search.css Addresses PR review: the legend-footer layout rule is already defined identically in css/search.css, which functions.php loads immediately before the selected legend stylesheet. Remove the nine per-palette copies (which could drift) and keep only the chip fill-width change on .syslogLegend .syslogLegendItem.
xmacan
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The System/Alert Logs severity legend chips were rendering small instead of filling the row evenly. This mirrors the fix already shipped for the thold legend so syslog matches it.
Root cause
Two bits of CSS the thold legend has were missing from syslog:
.syslogLegend .syslogLegendItemnever set a width. The chips carry a second per-severity class (logEmergency,logWarning, …); any width those classes pick up keeps each grid item at content size instead of stretching to its1frtrack..syslogLegendFooter(the wrapper emitted around the legend) had no CSS at all, so it shrink-wrapped rather than spanning the row.Fix
Mirror the thold legend exactly, across every per-theme
css/<theme>.cssand thecss/legend.cssfallback:.syslogLegend .syslogLegendItem→ addbox-sizing: border-box; width: 100%; min-width: 0;.syslogLegendFooter { display: table; width: 100%; margin: 8px auto 0; }CSS-only, scoped to the legend classes. Colors and spacing already live per-theme (and in the neutral
legend.cssfallback), so nothing else changes.Files
css/classic.css,css/dark.css,css/deepness.css,css/midwinter.css,css/modern.css,css/paper-plane.css,css/paw.css,css/sunrise.css,css/legend.css, plus a CHANGELOG entry.