From 410475b2b8ee47a1aecddba9324d3ac3aa453f31 Mon Sep 17 00:00:00 2001 From: malik1004x Date: Fri, 18 Sep 2026 18:47:08 +0200 Subject: [PATCH] fix changelog item padding (#3636) --- lib/new-ui/widgets/changelog_modal.dart | 65 +++++++++++++------------ 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/lib/new-ui/widgets/changelog_modal.dart b/lib/new-ui/widgets/changelog_modal.dart index 7197aabb2..f59ad90d1 100644 --- a/lib/new-ui/widgets/changelog_modal.dart +++ b/lib/new-ui/widgets/changelog_modal.dart @@ -170,38 +170,41 @@ class ChangelogItemWidget extends StatelessWidget { @override Widget build(BuildContext context) { - return Row( - mainAxisSize: MainAxisSize.min, - spacing: 12, - children: [ - if (item.iconFilename.isNotEmpty) - CakeImageWidget( - imageUrl: "$changelogIconLocation/${item.iconFilename}.svg", - height: 36, - width: 36, - colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn), - ), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - spacing: 4, - children: [ - if (item.title.isNotEmpty) - Text( - item.title, - style: TextStyle(fontWeight: FontWeight.w500), - ), - if (item.description.isNotEmpty) - Text( - item.description, - style: TextStyle( - color: Theme.of(context).colorScheme.onSurfaceVariant, + return Padding( + padding: EdgeInsets.symmetric(horizontal: 18), + child: Row( + mainAxisSize: MainAxisSize.min, + spacing: 12, + children: [ + if (item.iconFilename.isNotEmpty) + CakeImageWidget( + imageUrl: "$changelogIconLocation/${item.iconFilename}.svg", + height: 36, + width: 36, + colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn), + ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + spacing: 4, + children: [ + if (item.title.isNotEmpty) + Text( + item.title, + style: TextStyle(fontWeight: FontWeight.w500), ), - ) - ], - ), - ) - ], + if (item.description.isNotEmpty) + Text( + item.description, + style: TextStyle( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ) + ], + ), + ) + ], + ), ); } }