opt: reply item

This commit is contained in:
bggRGjQaUbCoE
2024-10-14 13:40:35 +08:00
parent d9e24f87a6
commit 82caba56de

View File

@@ -295,13 +295,6 @@ class ReplyItemGrpc extends StatelessWidget {
textPainter, textPainter,
didExceedMaxLines, didExceedMaxLines,
), ),
if (didExceedMaxLines)
TextSpan(
text: '\n查看更多',
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
),
),
], ],
), ),
), ),
@@ -940,6 +933,18 @@ InlineSpan buildContent(
} }
} }
} }
if (didExceedMaxLines == true) {
spanChildren.add(
TextSpan(
text: '\n查看更多',
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
),
),
);
}
// 图片渲染 // 图片渲染
if (content.pictures.isNotEmpty) { if (content.pictures.isNotEmpty) {
spanChildren.add(const TextSpan(text: '\n')); spanChildren.add(const TextSpan(text: '\n'));