diff --git a/apps/server/AliasVault.Client/Main/Components/Folders/DeleteFolderModal.razor b/apps/server/AliasVault.Client/Main/Components/Folders/DeleteFolderModal.razor index c442baeef..3af9b9154 100644 --- a/apps/server/AliasVault.Client/Main/Components/Folders/DeleteFolderModal.razor +++ b/apps/server/AliasVault.Client/Main/Components/Folders/DeleteFolderModal.razor @@ -1,86 +1,73 @@ +@using AliasVault.Client.Main.Components.Layout @using Microsoft.Extensions.Localization @* DeleteFolderModal component - modal with two delete options for a folder *@ -@if (IsOpen) -{ -
-
- @* Background overlay *@ -
+ + + + + + + +

+ @string.Format(Localizer["DeleteFolderDescription"].Value, FolderName) +

+
+ +
+ @* Option 1: Delete folder, keep items *@ + - @* Modal panel *@ -
-
-
-
- - - -
-
-

- @Localizer["DeleteFolderTitle"] -

-
-

- @string.Format(Localizer["DeleteFolderDescription"].Value, FolderName) -

-
-
+ @* Option 2: Delete folder and contents - only show if folder has items *@ + @if (ItemCount > 0) + { +
+
+
@Localizer["DeleteFolderAndContentsTitle"]
+
@string.Format(Localizer["DeleteFolderAndContentsDescription"].Value, ItemCount)
+
+ + } -
- @* Option 1: Delete folder, keep items *@ - - - @* Option 2: Delete folder and contents - only show if folder has items *@ - @if (ItemCount > 0) - { - - } - - @* Cancel button *@ - -
-
+ @* Cancel button *@ +
-
-} +
+
@code { [Inject] diff --git a/apps/server/AliasVault.Client/Main/Components/Folders/FolderPill.razor b/apps/server/AliasVault.Client/Main/Components/Folders/FolderPill.razor index b271cb4c4..497a32265 100644 --- a/apps/server/AliasVault.Client/Main/Components/Folders/FolderPill.razor +++ b/apps/server/AliasVault.Client/Main/Components/Folders/FolderPill.razor @@ -1,7 +1,7 @@ @using AliasVault.Client.Main.Models @* FolderPill component - displays a folder as a compact clickable pill *@ - + @if (IsInFolder) + { + + } @if (ShowFilterDropdown) { @@ -148,7 +157,7 @@ else } else { -
+
@* Folders section - only show at root level *@ @if (!IsInFolder && !IsSearching) { @@ -173,19 +182,6 @@ else
} - @* Back to root button - only show when in folder *@ - @if (IsInFolder) - { -
- -
- } -
@if (Items.Count == 0 && !IsInFolder) { @@ -259,18 +255,6 @@ else }
} - - @* Delete folder button - only show when in a folder *@ - @if (IsInFolder) - { - - }
} } @@ -491,10 +475,10 @@ else { if (Folders.Count > 0) { - return "inline-flex items-center gap-1.5 px-3.5 py-2 text-sm rounded-lg transition-colors focus:outline-none text-gray-500 dark:text-gray-400 hover:text-orange-600 dark:hover:text-orange-400 hover:bg-gray-100 dark:hover:bg-gray-700/50"; + return "inline-flex items-center gap-1.5 px-5 py-3 text-sm rounded-lg transition-colors focus:outline-none text-gray-500 dark:text-gray-400 hover:text-orange-600 dark:hover:text-orange-400 hover:bg-gray-100 dark:hover:bg-gray-700/50"; } - return "inline-flex items-center gap-1.5 px-3.5 py-2 text-sm rounded-lg transition-colors focus:outline-none text-gray-400 dark:text-gray-500 border border-dashed border-gray-300 dark:border-gray-600 hover:border-orange-400 dark:hover:border-orange-500 hover:text-orange-600 dark:hover:text-orange-400"; + return "inline-flex items-center gap-1.5 px-5 py-3 text-sm rounded-lg transition-colors focus:outline-none text-gray-400 dark:text-gray-500 border border-dashed border-gray-300 dark:border-gray-600 hover:border-orange-400 dark:hover:border-orange-500 hover:text-orange-600 dark:hover:text-orange-400"; } ///