bundle all fonts

Should fix #57
This commit is contained in:
Henry Hiles 2026-09-28 20:43:50 -04:00
commit 1758815cc9
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
10 changed files with 428 additions and 93 deletions

View file

@ -25,7 +25,7 @@ class const CodeBlock(
padding: .symmetric(horizontal: 8),
child: Text(
lang.substring(0, min(lang.length, 15)),
style: .new(fontFamily: "monospace"),
style: .new(fontFamily: "bundled-mono"),
),
),
TextButton.icon(
@ -44,7 +44,7 @@ class const CodeBlock(
code,
minLines: 1,
maxLines: 99,
style: .new(fontFamily: "monospace"),
style: .new(fontFamily: "bundled-mono"),
),
),
),

View file

@ -51,7 +51,19 @@ class const Html(
element.text,
lang: element.className.replaceAll("language-", ""),
)
: null,
: ClipRRect(
borderRadius: .all(.circular(4)),
child: Container(
padding: .all(8),
color: Theme.of(context)
.colorScheme
.surfaceContainerHighest,
child: SelectableText(
element.text,
style: .new(fontFamily: "bundled-mono"),
),
),
),
"blockquote" => Quoted(
Html(element.innerHtml, textStyle: textStyle, roomId: roomId),