mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-26 05:51:18 +02:00
fix(queue): keep create-playlist label at natural size
Making the button flexible let a tight layout squeeze its label away entirely. Only the count text needs to give way — it ellipsizes while the action buttons keep their full labels.
This commit is contained in:
@@ -223,18 +223,12 @@ extension _QueueTabFilterWidgets on _QueueTabState {
|
||||
if (!_isSelectionMode)
|
||||
_buildFilterButton(context, unifiedItems),
|
||||
if (!_isSelectionMode && filteredUnifiedItems.isNotEmpty)
|
||||
Flexible(
|
||||
child: TextButton.icon(
|
||||
onPressed: () => _showCreatePlaylistDialog(context),
|
||||
icon: const Icon(Icons.add, size: 20),
|
||||
label: Text(
|
||||
context.l10n.collectionCreatePlaylist,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
style: TextButton.styleFrom(
|
||||
visualDensity: VisualDensity.compact,
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed: () => _showCreatePlaylistDialog(context),
|
||||
icon: const Icon(Icons.add, size: 20),
|
||||
label: Text(context.l10n.collectionCreatePlaylist),
|
||||
style: TextButton.styleFrom(
|
||||
visualDensity: VisualDensity.compact,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -546,18 +540,12 @@ extension _QueueTabFilterWidgets on _QueueTabState {
|
||||
if (!_isSelectionMode)
|
||||
_buildFilterButton(context, unifiedItems),
|
||||
if (!_isSelectionMode && filteredUnifiedItems.isNotEmpty)
|
||||
Flexible(
|
||||
child: TextButton.icon(
|
||||
onPressed: () => _showCreatePlaylistDialog(context),
|
||||
icon: const Icon(Icons.add, size: 20),
|
||||
label: Text(
|
||||
context.l10n.collectionCreatePlaylist,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
style: TextButton.styleFrom(
|
||||
visualDensity: VisualDensity.compact,
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed: () => _showCreatePlaylistDialog(context),
|
||||
icon: const Icon(Icons.add, size: 20),
|
||||
label: Text(context.l10n.collectionCreatePlaylist),
|
||||
style: TextButton.styleFrom(
|
||||
visualDensity: VisualDensity.compact,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user