🐛 Fix file dashboard icon sometimes overflow

This commit is contained in:
2025-11-24 22:51:22 +08:00
parent b4801d6af6
commit 3a7d8b1a0d

View File

@@ -742,22 +742,25 @@ class FileListView extends HookConsumerWidget {
), ),
), ),
const Gap(16), const Gap(16),
Row( SingleChildScrollView(
mainAxisAlignment: MainAxisAlignment.center, scrollDirection: Axis.horizontal,
children: [ child: Row(
ElevatedButton.icon( mainAxisAlignment: MainAxisAlignment.center,
onPressed: onPickAndUpload, children: [
icon: const Icon(Symbols.upload_file), ElevatedButton.icon(
label: const Text('Upload Files'), onPressed: onPickAndUpload,
), icon: const Icon(Symbols.upload_file),
const Gap(12), label: const Text('Upload Files'),
OutlinedButton.icon( ),
onPressed: const Gap(12),
() => onShowCreateDirectory(ref.context, currentPath), OutlinedButton.icon(
icon: const Icon(Symbols.create_new_folder), onPressed:
label: const Text('Create Directory'), () => onShowCreateDirectory(ref.context, currentPath),
), icon: const Icon(Symbols.create_new_folder),
], label: const Text('Create Directory'),
),
],
),
), ),
], ],
), ),