fix(ui): refine track action spacing

This commit is contained in:
zarzet
2026-07-30 14:42:26 +07:00
parent 49d0bd6a99
commit 5357e14b06
6 changed files with 50 additions and 4 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ extension _ArtistScreenSections on _ArtistScreenState {
hasLocalPlaybackCandidate: isInHistory || isInLocalLibrary,
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
padding: const EdgeInsets.fromLTRB(16, 8, 10, 8),
child: Row(
children: [
SizedBox(
+1 -1
View File
@@ -269,7 +269,7 @@ class _TrackItemWithStatus extends ConsumerWidget {
splashColor: colorScheme.primary.withValues(alpha: 0.12),
highlightColor: colorScheme.primary.withValues(alpha: 0.08),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
padding: const EdgeInsets.fromLTRB(12, 10, 6, 10),
child: Row(
children: [
ClipRRect(
+4 -1
View File
@@ -77,6 +77,9 @@ class TrackCard extends StatelessWidget {
final theme = Theme.of(context);
final colorScheme = theme.colorScheme;
final borderRadius = tokens.borderRadiusCover;
final contentPadding = style == TrackCardStyle.flat
? EdgeInsets.fromLTRB(tokens.gapMd, tokens.gapMd, 6, tokens.gapMd)
: EdgeInsets.all(tokens.gapMd);
final Color? cardColor;
if (isSelected) {
@@ -111,7 +114,7 @@ class TrackCard extends StatelessWidget {
children: [
if (background != null) Positioned.fill(child: background!),
Padding(
padding: EdgeInsets.all(tokens.gapMd),
padding: contentPadding,
child: Row(
children: [
if (isSelectionMode) ...[
@@ -59,7 +59,7 @@ class TrackCollectionQuickActions extends ConsumerWidget {
track,
hasLocalPlaybackCandidate: hasLocalPlaybackCandidate,
),
padding: const EdgeInsets.only(left: 12),
padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 48, minHeight: 48),
);
}