diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-16 18:44:24 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-16 18:44:24 +0100 |
| commit | c074a085cca9d97d9b4eb18f21004fb41f7857f6 (patch) | |
| tree | ffb3a91c7efd8788f58b669991127e08b0e1c034 /AGENTS.md | |
| parent | 573ad65a8eee9173256c860f46204e584169c749 (diff) | |
| download | deck-it-c074a085cca9d97d9b4eb18f21004fb41f7857f6.tar.gz deck-it-c074a085cca9d97d9b4eb18f21004fb41f7857f6.zip | |
fix(ui): serve the Propo Nerd Font so icons centre
The plain Inconsolata Nerd Font gives each icon a 500 unit advance while
its ink is up to twice that wide, so every Nerd Font button sat right of
centre. The Propo variant's advance is the ink, so centring works for all
of them; the VM power button's padding workaround goes. The URL becomes
/fonts/nerd-propo.ttf because the font is cached for a day.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -118,8 +118,10 @@ Keep the server dependency-free apart from that one package. `qs -p <[assistant] shell> ipc call assistant catalog`. Files are picked on the PC with qarma, never named by the tablet. Voice is a WAV upload (`Module.uploads`, a raw body with its own size limit) written to the run - dir and asked with `audio`. The tab's icons are the Nerd Font the server - serves at `/fonts/nerd.ttf`; Markdown goes through `static/md.js` + dir and asked with `audio`. The tab's icons are the Nerd Font (Propo, so + a glyph's advance is its ink and centring works) the server serves at + `/fonts/nerd-propo.ttf`, cached a day: rename the URL when the font + changes; Markdown goes through `static/md.js` (vendored `marked`, HTML escaped, images never fetched). - The page holds a Screen Wake Lock while visible, so the tablet never sleeps over the dashboard. After `[tablet] dim_after` seconds untouched, `app.js` |
