🐛 Fix markdown rendering

This commit is contained in:
2025-10-13 00:16:57 +08:00
parent 8d1c145b0b
commit 681ead02eb

View File

@@ -530,7 +530,11 @@ class SpoilerSpanNode extends SpanNode {
? Row( ? Row(
spacing: 6, spacing: 6,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [Icon(Symbols.visibility, size: 18), Text(text)], crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(Symbols.visibility, size: 18).padding(top: 1),
Flexible(child: Text(text)),
],
) )
: Row( : Row(
spacing: 6, spacing: 6,
@@ -541,7 +545,13 @@ class SpoilerSpanNode extends SpanNode {
color: foregroundColor, color: foregroundColor,
size: 18, size: 18,
), ),
Text(text, style: TextStyle(color: foregroundColor)), Flexible(
child:
Text(
'spoiler',
style: TextStyle(color: foregroundColor),
).tr(),
),
], ],
), ),
), ),