opt: dyn text

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-16 13:59:28 +08:00
parent 8291359cda
commit 83205caa80
3 changed files with 12 additions and 8 deletions

View File

@@ -65,8 +65,8 @@ class ContentGrpc extends StatelessWidget {
/// fix 默认20px高度
style: const TextStyle(height: 0),
richNodes,
maxLines: source == 'detail' ? 999 : 6,
overflow: TextOverflow.ellipsis,
maxLines: source == 'detail' ? null : 6,
overflow: source == 'detail' ? null : TextOverflow.ellipsis,
),
),
),