fix: resolve nested button styles in bulk actions and clean up UI modules
Some checks failed
Build MIPS Binary / build (push) Has been cancelled

This commit is contained in:
spinline
2026-02-12 01:37:00 +03:00
parent e0b5411eb1
commit 3a2cab7ca7
2 changed files with 9 additions and 11 deletions

View File

@@ -220,11 +220,9 @@ pub fn TorrentTable() -> impl IntoView {
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<Show when=move || has_selection.get()> <Show when=move || has_selection.get()>
<DropdownMenu> <DropdownMenu>
<DropdownMenuTrigger> <DropdownMenuTrigger class="gap-2 bg-secondary text-secondary-foreground border-none hover:bg-secondary/80">
<Button variant=ButtonVariant::Secondary size=ButtonSize::Sm class="gap-2"> <Ellipsis class="size-4" />
<Ellipsis class="size-4" /> {move || format!("Toplu İşlem ({})", selected_count.get())}
{move || format!("Toplu İşlem ({})", selected_count.get())}
</Button>
</DropdownMenuTrigger> </DropdownMenuTrigger>
<DropdownMenuContent class="w-48"> <DropdownMenuContent class="w-48">
<DropdownMenuLabel>"Seçili Torrentler"</DropdownMenuLabel> <DropdownMenuLabel>"Seçili Torrentler"</DropdownMenuLabel>
@@ -239,10 +237,10 @@ pub fn TorrentTable() -> impl IntoView {
<div class="my-1 h-px bg-border" /> <div class="my-1 h-px bg-border" />
<AlertDialog> <AlertDialog>
<AlertDialogTrigger class="w-full"> <AlertDialogTrigger class="w-full text-left">
<DropdownMenuItem class="text-destructive focus:bg-destructive/10"> <div class="inline-flex gap-2 items-center w-full rounded-sm px-2 py-1.5 text-sm transition-colors text-destructive hover:bg-destructive/10 focus:bg-destructive/10">
<Trash2 class="mr-2 size-4" /> "Toplu Sil" <Trash2 class="size-4" /> "Toplu Sil"
</DropdownMenuItem> </div>
</AlertDialogTrigger> </AlertDialogTrigger>
<AlertDialogContent> <AlertDialogContent>
<AlertDialogHeader> <AlertDialogHeader>
@@ -612,4 +610,4 @@ fn TorrentCard(
} }
</Show> </Show>
}.into_any() }.into_any()
} }

View File

@@ -14,4 +14,4 @@ pub mod separator;
pub mod svg_icon; pub mod svg_icon;
pub mod table; pub mod table;
pub mod theme_toggle; pub mod theme_toggle;
pub mod toast; pub mod toast;