From bdf8fc6ce1ab17913e20ae2e7a046fb566b459f3 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 30 Sep 2026 11:16:03 -0400 Subject: [PATCH] make inline codeblocks actually inline --- lib/widgets/html/html.dart | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/widgets/html/html.dart b/lib/widgets/html/html.dart index 4393c61..7c99471 100644 --- a/lib/widgets/html/html.dart +++ b/lib/widgets/html/html.dart @@ -51,16 +51,18 @@ class const Html( element.text, lang: element.className.replaceAll("language-", ""), ) - : 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"), + : InlineCustomWidget( + child: 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"), + ), ), ), ),