From 070c210d856e5294c27b76f304f35af19e2eaadc Mon Sep 17 00:00:00 2001 From: NimBold Date: Sat, 20 Jun 2026 19:57:19 +0330 Subject: [PATCH] feat(ui): modernize toasts, enhance button feedback, and restructure layouts - Add global scale-down animation to button active states for tactile feedback - Reposition toast notifications to bottom-center with updated modern styling - Split 'Start Downloads' and 'Add to...' actions in AddDownloadsModal - Overhaul Category Subfolders layout in SettingsView using flexbox for better alignment --- src/components/AddDownloadsModal.tsx | 109 +++++++++++++++------------ src/components/SettingsView.tsx | 83 +++++++++++--------- src/contexts/ToastContext.tsx | 11 +-- src/index.css | 8 +- 4 files changed, 118 insertions(+), 93 deletions(-) diff --git a/src/components/AddDownloadsModal.tsx b/src/components/AddDownloadsModal.tsx index 9454574..4278d16 100644 --- a/src/components/AddDownloadsModal.tsx +++ b/src/components/AddDownloadsModal.tsx @@ -1112,62 +1112,75 @@ export const AddDownloadsModal = () => { -
+
- - {isActionMenuOpen && ( -
+ + {isActionMenuOpen && ( +
- - Add to List - - -
- )} + +
+ +
+ {queues.map(queue => ( + + ))} +
+
+
+ )} +
diff --git a/src/components/SettingsView.tsx b/src/components/SettingsView.tsx index 93b6c52..845a68c 100644 --- a/src/components/SettingsView.tsx +++ b/src/components/SettingsView.tsx @@ -697,46 +697,55 @@ runEngineChecks(false); Relative to the base folder - {DOWNLOAD_CATEGORIES.map((category) => ( -
- {category} -
- settings.setCategorySubfolder(category, e.target.value)} - onBlur={(e) => settings.setCategorySubfolder( - category, - normalizeCategorySubfolder( - e.target.value, - DEFAULT_CATEGORY_SUBFOLDERS[category] - ) - )} - className="app-control w-64 text-[11px] px-2" - aria-label={`${category} subfolder`} - /> - +
+ {DOWNLOAD_CATEGORIES.map((category) => ( +
+
+ {category} +
+ settings.setCategorySubfolder(category, e.target.value)} + onBlur={(e) => settings.setCategorySubfolder( + category, + normalizeCategorySubfolder( + e.target.value, + DEFAULT_CATEGORY_SUBFOLDERS[category] + ) + )} + className="app-control flex-1 max-w-[280px] text-[12px] px-3 py-1.5 bg-surface-overlay/50 border-border-color/50 focus:border-accent-color focus:bg-surface-overlay" + aria-label={`${category} subfolder`} + /> + + {settings.categoryDirectoryOverrides[category] && ( + + )} +
+
{settings.categoryDirectoryOverrides[category] && ( - +
+
+ Override + + {settings.categoryDirectoryOverrides[category]} + +
+
)}
- {settings.categoryDirectoryOverrides[category] && ( -

- Override: {settings.categoryDirectoryOverrides[category]} -

- )} -
- ))} + ))} +