Commit b84d687
committed
File list: align the Modified and Size columns with tabular figures
Dates and sizes in the file list now line up into clean vertical columns without switching to a monospace font, matching the organized look of Total Commander while keeping the macOS system font.
- Render the Modified and Size columns with `font-variant-numeric: tabular-nums`, so every digit takes the same advance and the slashes/colons/right-aligned sizes stack across rows.
- Remove the old `|` split-date machinery (`.date-left`/`.date-right`, `dateLeft`, `DATE_PARTS_GAP`, the per-half measurement). Every token format emits a fixed character count, so with tabular figures the time halves align on their own; dates now render as one segment list.
- Teach the column-width measurer about tabular figures: canvas/pretext can't measure the `tnum` feature, so it sizes numeric columns to the font's widest digit (`tabularize`), which prevents digit-heavy rows (`11/11/1111`) from clipping.
- Pad the `system` format to fixed-width locale components (2-digit month/day/hour/minute), so locale formats align too: en-US becomes `02/03/2025, 08:32 PM` instead of `2/3/25, 8:32:26 PM`. The locale still owns field order, separators, and the 12-/24-hour choice.
- Make ISO 8601 the default date format (was system default).
- Drop the leftover `|` from the Custom format default (now `YYYY-MM-DD HH:mm`) and its description, and fix the stale `Short` option example.
- Update colocated docs and tests.1 parent e449b00 commit b84d687
11 files changed
Lines changed: 154 additions & 228 deletions
File tree
- apps/desktop/src/lib
- file-explorer/views
- settings
- ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
| |||
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
Lines changed: 13 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1031 | 1019 | | |
1032 | 1020 | | |
1033 | 1021 | | |
| |||
1323 | 1311 | | |
1324 | 1312 | | |
1325 | 1313 | | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1326 | 1318 | | |
1327 | 1319 | | |
1328 | 1320 | | |
| |||
1358 | 1350 | | |
1359 | 1351 | | |
1360 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1361 | 1358 | | |
1362 | 1359 | | |
1363 | 1360 | | |
| |||
1385 | 1382 | | |
1386 | 1383 | | |
1387 | 1384 | | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | 1385 | | |
1406 | 1386 | | |
1407 | 1387 | | |
| |||
Lines changed: 16 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 145 | + | |
| 146 | + | |
151 | 147 | | |
152 | 148 | | |
153 | | - | |
| 149 | + | |
154 | 150 | | |
155 | 151 | | |
156 | 152 | | |
157 | | - | |
158 | | - | |
| 153 | + | |
| 154 | + | |
159 | 155 | | |
160 | | - | |
| 156 | + | |
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | 160 | | |
165 | 161 | | |
166 | 162 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 163 | + | |
| 164 | + | |
179 | 165 | | |
180 | 166 | | |
181 | 167 | | |
| |||
0 commit comments