From 616c129ffdded3c4cdbe42073c9d9f37f4258a94 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Fri, 16 May 2025 18:16:47 +0800 Subject: [PATCH] opt top up panel Signed-off-by: bggRGjQaUbCoE --- lib/pages/dynamics/widgets/up_panel.dart | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/pages/dynamics/widgets/up_panel.dart b/lib/pages/dynamics/widgets/up_panel.dart index d0665233..8bc70087 100644 --- a/lib/pages/dynamics/widgets/up_panel.dart +++ b/lib/pages/dynamics/widgets/up_panel.dart @@ -48,7 +48,7 @@ class _UpPanelState extends State { child: Container( alignment: Alignment.center, height: isTop ? 76 : 60, - padding: isTop ? const EdgeInsets.symmetric(horizontal: 6) : null, + padding: isTop ? const EdgeInsets.only(left: 12, right: 6) : null, child: Text.rich( textAlign: TextAlign.center, style: TextStyle( @@ -128,7 +128,7 @@ class _UpPanelState extends State { widget.dynamicsController.currentMid == -1; return SizedBox( height: 76, - width: isTop ? 65 : null, + width: isTop ? 70 : null, child: InkWell( onTap: () { feedBack(); @@ -181,7 +181,7 @@ class _UpPanelState extends State { ), ), Positioned( - top: data.type == 'live' ? -5 : 0, + top: data.type == 'live' && !isTop ? -5 : 0, right: data.type == 'live' ? -6 : 4, child: Badge( smallSize: 8, @@ -202,10 +202,8 @@ class _UpPanelState extends State { Padding( padding: const EdgeInsets.symmetric(horizontal: 4), child: Text( - data.uname, - overflow: TextOverflow.clip, - maxLines: isTop ? 1 : 2, - softWrap: true, + isTop ? '${data.uname}\n' : data.uname, + maxLines: 2, textAlign: TextAlign.center, style: TextStyle( color: widget.dynamicsController.currentMid == data.mid