Skip to content

Commit 3b512a0

Browse files
committed
Monospace request count numbers to avoid layout flickering
Unfortunately DM Sans doesn't support tabular numbers itself, but using DM Mono looks just as good imo and neatly solves the problem, so numbers tick upwards cleanly.
1 parent fb4fd53 commit 3b512a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/view/view-event-list-footer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ const RequestCounter = styled(observer((props: {
4141
font-size: 20px;
4242
font-weight: bold;
4343
white-space: nowrap;
44+
45+
font-variant-numeric: tabular-nums;
46+
font-family: ${p => p.theme.monoFontFamily}
4447
}
4548
4649
.label {

0 commit comments

Comments
 (0)