From b9710ed851747004cd33a7925f63cb58cb0eebd2 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 25 May 2026 12:55:36 +0200 Subject: [PATCH] fix: pixel overflow --- lib/presentation/widgets/game_label.dart | 56 +++++++++++++----------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/lib/presentation/widgets/game_label.dart b/lib/presentation/widgets/game_label.dart index dd179d6..2e6bf74 100644 --- a/lib/presentation/widgets/game_label.dart +++ b/lib/presentation/widgets/game_label.dart @@ -21,32 +21,35 @@ class GameLabel extends StatelessWidget { ? Colors.black : Colors.white; - return IntrinsicHeight( - child: Row( - mainAxisSize: MainAxisSize.min, - children: [ - // Title - Container( - decoration: BoxDecoration( - color: backgroundColor.withAlpha(230), - borderRadius: const BorderRadius.only( - topLeft: Radius.circular(8), - bottomLeft: Radius.circular(8), - ), - ), - padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8), - child: Text( - title, - style: TextStyle( - fontSize: 12, - color: fontColor, - fontWeight: FontWeight.bold, - ), + return Row( + mainAxisSize: MainAxisSize.min, + children: [ + // Title + Container( + decoration: BoxDecoration( + color: backgroundColor.withAlpha(230), + borderRadius: const BorderRadius.only( + topLeft: Radius.circular(8), + bottomLeft: Radius.circular(8), ), ), + padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8), + child: Text( + title, + maxLines: 1, + overflow: TextOverflow.ellipsis, + softWrap: false, + style: TextStyle( + fontSize: 12, + color: fontColor, + fontWeight: FontWeight.bold, + ), + ), + ), - // Description - Container( + // Description + Flexible( + child: Container( decoration: BoxDecoration( color: backgroundColor.withAlpha(140), borderRadius: const BorderRadius.only( @@ -57,6 +60,9 @@ class GameLabel extends StatelessWidget { padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8), child: Text( description, + maxLines: 1, + overflow: TextOverflow.ellipsis, + softWrap: false, style: TextStyle( fontSize: 12, color: fontColor, @@ -64,8 +70,8 @@ class GameLabel extends StatelessWidget { ), ), ), - ], - ), + ), + ], ); } }