fix: align AlertDialog structure with project standards using AlertDialogBody
All checks were successful
Build MIPS Binary / build (push) Successful in 1m52s

This commit is contained in:
spinline
2026-02-12 23:30:42 +03:00
parent feede5c5b4
commit b29f9f3cc2

View File

@@ -14,7 +14,17 @@ use crate::components::ui::empty::*;
use crate::components::ui::input::Input; use crate::components::ui::input::Input;
use crate::components::ui::multi_select::*; use crate::components::ui::multi_select::*;
use crate::components::ui::dropdown_menu::*; use crate::components::ui::dropdown_menu::*;
use crate::components::ui::alert_dialog::*; use crate::components::ui::alert_dialog::{
AlertDialog,
AlertDialogBody,
AlertDialogClose,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogTrigger,
};
use tailwind_fuse::tw_merge; use tailwind_fuse::tw_merge;
const ALL_COLUMNS: [(&str, &str); 8] = [ const ALL_COLUMNS: [(&str, &str); 8] = [
@@ -244,6 +254,7 @@ pub fn TorrentTable() -> impl IntoView {
</div> </div>
</AlertDialogTrigger> </AlertDialogTrigger>
<AlertDialogContent class="sm:max-w-[425px]"> <AlertDialogContent class="sm:max-w-[425px]">
<AlertDialogBody>
<AlertDialogHeader class="space-y-3"> <AlertDialogHeader class="space-y-3">
<AlertDialogTitle class="text-destructive flex items-center gap-2 text-xl"> <AlertDialogTitle class="text-destructive flex items-center gap-2 text-xl">
<Trash2 class="size-6" /> <Trash2 class="size-6" />
@@ -277,6 +288,7 @@ pub fn TorrentTable() -> impl IntoView {
</div> </div>
</div> </div>
</AlertDialogFooter> </AlertDialogFooter>
</AlertDialogBody>
</AlertDialogContent> </AlertDialogContent>
</AlertDialog> </AlertDialog>
</DropdownMenuGroup> </DropdownMenuGroup>