make inline codeblocks actually inline
This commit is contained in:
parent
b738c1d0e0
commit
bdf8fc6ce1
1 changed files with 12 additions and 10 deletions
|
|
@ -51,16 +51,18 @@ class const Html(
|
||||||
element.text,
|
element.text,
|
||||||
lang: element.className.replaceAll("language-", ""),
|
lang: element.className.replaceAll("language-", ""),
|
||||||
)
|
)
|
||||||
: ClipRRect(
|
: InlineCustomWidget(
|
||||||
borderRadius: .all(.circular(4)),
|
child: ClipRRect(
|
||||||
child: Container(
|
borderRadius: .all(.circular(4)),
|
||||||
padding: .all(8),
|
child: Container(
|
||||||
color: Theme.of(context)
|
padding: .all(8),
|
||||||
.colorScheme
|
color: Theme.of(context)
|
||||||
.surfaceContainerHighest,
|
.colorScheme
|
||||||
child: SelectableText(
|
.surfaceContainerHighest,
|
||||||
element.text,
|
child: SelectableText(
|
||||||
style: .new(fontFamily: "bundled-mono"),
|
element.text,
|
||||||
|
style: .new(fontFamily: "bundled-mono"),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue