From bf30c7f167fd2149c0fa464b7015b6f9592925d4 Mon Sep 17 00:00:00 2001 From: franzap <_@franzap.com> Date: Mon, 22 Dec 2025 19:39:03 -0300 Subject: [PATCH] Minor UI fixes --- lib/widgets/app_card.dart | 25 +++++++++++++++++++++++-- lib/widgets/zap_widgets.dart | 8 +++++++- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/lib/widgets/app_card.dart b/lib/widgets/app_card.dart index 1307fba..e649895 100644 --- a/lib/widgets/app_card.dart +++ b/lib/widgets/app_card.dart @@ -139,7 +139,28 @@ class AppCard extends HookConsumerWidget { ], // Update button (for apps with updates or currently downloading/installing) - if (showUpdateButton) _AppCardUpdateButtonSection(app: app!), + if (showUpdateButton) + LayoutBuilder( + builder: (context, constraints) { + // Match the text column start (icon width + spacing) + final iconSize = (constraints.maxWidth * 0.20).clamp( + 48.0, + 64.0, + ); + final leftInset = iconSize + 14; + + return Padding( + padding: EdgeInsets.only(left: leftInset), + child: SizedBox( + width: (constraints.maxWidth - leftInset).clamp( + 0.0, + constraints.maxWidth, + ), + child: _AppCardUpdateButtonSection(app: app!), + ), + ); + }, + ), // Zap encouragement (only for downloading/installing developer-signed apps) if (showZapEncouragement) @@ -249,7 +270,7 @@ class AppCard extends HookConsumerWidget { TextSpan( children: [ TextSpan(text: appName, style: titleStyle), - TextSpan(text: ' by ', style: byStyle), + TextSpan(text: ' by ', style: byStyle), WidgetSpan( alignment: PlaceholderAlignment.middle, child: Padding( diff --git a/lib/widgets/zap_widgets.dart b/lib/widgets/zap_widgets.dart index c196902..6d285ea 100644 --- a/lib/widgets/zap_widgets.dart +++ b/lib/widgets/zap_widgets.dart @@ -111,6 +111,7 @@ class ZappersHorizontalList extends StatelessWidget { child: Row( children: [ Row( + crossAxisAlignment: CrossAxisAlignment.center, children: [ Text( '⚡️${formatSatsCompact(totalSats)}', @@ -119,7 +120,12 @@ class ZappersHorizontalList extends StatelessWidget { fontWeight: FontWeight.bold, ), ), - const SizedBox(width: 16), + const SizedBox(width: 6), + Text( + 'sats by', + style: theme.textTheme.bodyMedium?.copyWith(color: color), + ), + const SizedBox(width: 12), ], ), for (final e in entries) ...[