Repository navigation
Keep the term of a fact beside its value - #191
Conversation
|
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. |
|
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. |
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, andscreen-factsof the reference that it copies, put a term and its value on one line withgrid-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, andtext-align: endkeeps 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.dotnet build -c Release -warnaserrordotnet test --project tests/FluentCMS.Components.Browser --filter-class "*FactsTests"(three modes)--filter-class "*DashboardTests" --filter-class "*EntryEditorTests"(three modes)npx --yes markdownlint-cli2@0.24.2 "**/*.md"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