Commit fb302ef
committed
css: keep schema-table identifiers from wrapping mid-word
Tables in the developer guides use the first column for
identifiers (field names like 'display_manager', package
names like 'gnome-control-center'). When the column was
narrow, mkdocs material was wrapping the identifier
between letters — 'display_manage' / 'r' — which was
unreadable.
Add a CSS rule that says: in any table, if the first
column's cell contains a <code> element, don't wrap that
code. The rule is scoped to <code> in the first cell so
prose tables (where the first column might be a
sentence) are unaffected.
The result is that schema tables auto-size their first
column to fit the longest identifier without wrapping
mid-word, while keeping the rest of the columns flexible.1 parent 5dfae63 commit fb302ef
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 | | |
27 | 38 | | |
28 | 39 | | |
| |||
0 commit comments