From 681ead02ebf0ae6e8fe63ecdf0b6be0f3980ea64 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 13 Oct 2025 00:16:57 +0800 Subject: [PATCH] :bug: Fix markdown rendering --- lib/widgets/content/markdown.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/widgets/content/markdown.dart b/lib/widgets/content/markdown.dart index c6df2154..cd5567b9 100644 --- a/lib/widgets/content/markdown.dart +++ b/lib/widgets/content/markdown.dart @@ -530,7 +530,11 @@ class SpoilerSpanNode extends SpanNode { ? Row( spacing: 6, 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( spacing: 6, @@ -541,7 +545,13 @@ class SpoilerSpanNode extends SpanNode { color: foregroundColor, size: 18, ), - Text(text, style: TextStyle(color: foregroundColor)), + Flexible( + child: + Text( + 'spoiler', + style: TextStyle(color: foregroundColor), + ).tr(), + ), ], ), ),