mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: dyn text
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -58,8 +58,8 @@ Widget content(context, item, source, callback) {
|
||||
fontSize: source == 'detail' ? 16 : 15,
|
||||
),
|
||||
richNodes,
|
||||
maxLines: source == 'detail' ? 999 : 6,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: source == 'detail' ? null : 6,
|
||||
overflow: source == 'detail' ? null : TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -97,8 +97,10 @@ Widget forWard(item, context, source, callback, {floor = 1}) {
|
||||
Text.rich(
|
||||
richNodes,
|
||||
// 被转发状态(floor=2) 隐藏
|
||||
maxLines: source == 'detail' && floor != 2 ? 999 : 4,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: source == 'detail' && floor != 2 ? null : 4,
|
||||
overflow: source == 'detail' && floor != 2
|
||||
? null
|
||||
: TextOverflow.ellipsis,
|
||||
),
|
||||
if (hasPics) ...[
|
||||
Text.rich(
|
||||
@@ -214,8 +216,10 @@ Widget forWard(item, context, source, callback, {floor = 1}) {
|
||||
Text.rich(
|
||||
richNodes,
|
||||
// 被转发状态(floor=2) 隐藏
|
||||
maxLines: source == 'detail' && floor != 2 ? 999 : 4,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: source == 'detail' && floor != 2 ? null : 4,
|
||||
overflow: source == 'detail' && floor != 2
|
||||
? null
|
||||
: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user