From 3a7d8b1a0d79c8f26fc5b29a1866600f6bb9d9d7 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 24 Nov 2025 22:51:22 +0800 Subject: [PATCH] :bug: Fix file dashboard icon sometimes overflow --- lib/widgets/file_list_view.dart | 35 ++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/widgets/file_list_view.dart b/lib/widgets/file_list_view.dart index b946af69..70fe99f8 100644 --- a/lib/widgets/file_list_view.dart +++ b/lib/widgets/file_list_view.dart @@ -742,22 +742,25 @@ class FileListView extends HookConsumerWidget { ), ), const Gap(16), - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - ElevatedButton.icon( - onPressed: onPickAndUpload, - icon: const Icon(Symbols.upload_file), - label: const Text('Upload Files'), - ), - const Gap(12), - OutlinedButton.icon( - onPressed: - () => onShowCreateDirectory(ref.context, currentPath), - icon: const Icon(Symbols.create_new_folder), - label: const Text('Create Directory'), - ), - ], + SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ElevatedButton.icon( + onPressed: onPickAndUpload, + icon: const Icon(Symbols.upload_file), + label: const Text('Upload Files'), + ), + const Gap(12), + OutlinedButton.icon( + onPressed: + () => onShowCreateDirectory(ref.context, currentPath), + icon: const Icon(Symbols.create_new_folder), + label: const Text('Create Directory'), + ), + ], + ), ), ], ),