Skip to content

Keep the term of a fact beside its value - #191

Merged
pournasserian merged 3 commits into
mainfrom
190-facts-overprint
Dec 1, 2026
Merged

pournasserian merged 3 commits into
mainfrom
190-facts-overprint

Conversation

@pournasserian

Copy link
Copy Markdown
Member

The term Updated in the Info card of the entry editor was drawn under its value ("UpdateSaved 12 min ago by Jonas Weber"), in the gallery and in the committed baselines.

Cause. gallery-screen-facts, and screen-facts of the reference that it copies, put a term and its value on one line with grid-template-columns: minmax(0, 1fr) auto: the value took the width of its whole text and left the term the rest. A long value left the term nothing, and the term, which is not clipped, overflowed under the value. The facts of the dashboard are short, so they never showed it.

Fix. auto minmax(0, 1fr): the term keeps its width, the value takes the rest of the line and wraps when it is long, and text-align: end keeps it at the end of the line, where it was. The same in the gallery and in the reference. The inline description list stays host CSS, as decided earlier.

Test. New Screens/FactsTests.NoTermIsDrawnUnderItsValue: on the entry editor and the dashboard, at 1280 and 320 pixels, the text of no term overlaps the box of its value. On the old rule it fails in the three modes, naming "Updated"; with the fix it passes.

Command Result
dotnet build -c Release -warnaserror 0 warnings, 0 errors
dotnet test --project tests/FluentCMS.Components.Browser --filter-class "*FactsTests" (three modes) 6 passed; 3 failed on the old rule, naming "Updated"
the same with --filter-class "*DashboardTests" --filter-class "*EntryEditorTests" (three modes) 55 passed, with the facts tests
npx --yes markdownlint-cli2@0.24.2 "**/*.md" 0 issues

Visual baselines. The captures of the entry editor change where the Info card is: the term and its value side by side, the value wrapped at the end. The dashboard's System card and the editor's Status card should not change, since their values are short and stay at the end of the line. Each changed capture is reviewed from the CI artifact.

Closes #190

@pournasserian

Copy link
Copy Markdown
Member Author

Review by a fresh reviewer (diff and issue only): the CSS holds for every user of the class (badge and link values, 320 pixels, right to left; the unlayered host rule beats the list's own 30rem rule on purpose). Taken: the test now asserts that the lists are on the page (one on the dashboard, two in the editor), so it cannot pass on nothing (d757ce6). Left: a cap on the width of a term (no long term in the data) and a right-to-left row in the test. The baselines are taken from this pull request's CI run and reviewed before they are committed.

@pournasserian

Copy link
Copy Markdown
Member Author

Visual baselines from the run on d757ce6, looked at before they were committed (6614967): only the four content captures of the entry editor changed, where the Info card is. The term Updated stands beside its value in light, in dark-compact-rtl and at 320 pixels, and the long value wraps at the end of the line; the captures grew by 19 or 20 pixels for that second line. The dashboard and the editor's Status card did not change.

@pournasserian
pournasserian merged commit 4646268 into main Dec 1, 2026
8 checks passed
@pournasserian
pournasserian deleted the 190-facts-overprint branch December 1, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The term Updated is drawn under its value in the Info card of the editor

1 participant