diff --git a/crates/librqbit/webui/src/components/buttons/Button.tsx b/crates/librqbit/webui/src/components/buttons/Button.tsx index 398f962..b2e8d4e 100644 --- a/crates/librqbit/webui/src/components/buttons/Button.tsx +++ b/crates/librqbit/webui/src/components/buttons/Button.tsx @@ -11,11 +11,11 @@ export const Button: React.FC<{ secondary: "hover:bg-blue-500 transition-colors hover:text-white dark:hover:bg-blue-900/50", danger: - "bg-red-400 text-white border-green-50 hover:border-red-700 hover:bg-red-600 dark:bg-red-800 dark:border-none", + "bg-red-400 text-white border-green-50 hover:border-red-700 hover:bg-red-600 dark:bg-red-800 dark:border-none dark:hover:bg-red-900", primary: "bg-blue-600 text-white hover:bg-blue-800 disabled:bg-blue-200 dark:disabled:bg-slate-600 dark:disabled:text-slate-300 dark:border-none", cancel: - "hover:bg-slate-200 dark:bg-slate-200 dark:hover:bg-slate-400 dark:border-none", + "hover:bg-slate-200 dark:bg-slate-600 dark:hover:bg-slate-700 dark:border-none", none: "", }[variant ?? "secondary"]; return ( diff --git a/crates/librqbit/webui/src/components/forms/FormInput.tsx b/crates/librqbit/webui/src/components/forms/FormInput.tsx index d2fb1d9..8aa511a 100644 --- a/crates/librqbit/webui/src/components/forms/FormInput.tsx +++ b/crates/librqbit/webui/src/components/forms/FormInput.tsx @@ -29,7 +29,7 @@ export const FormInput: React.FC<{ - + Are you sure you want to delete the torrent? @@ -65,7 +65,10 @@ export const DeleteTorrentModal: React.FC<{ checked={deleteFiles} placeholder="Also delete files" /> - + Also delete files diff --git a/crates/librqbit/webui/src/components/modal/Modal.tsx b/crates/librqbit/webui/src/components/modal/Modal.tsx index 209a59e..851dbd1 100644 --- a/crates/librqbit/webui/src/components/modal/Modal.tsx +++ b/crates/librqbit/webui/src/components/modal/Modal.tsx @@ -16,8 +16,8 @@ const ModalHeader: React.FC<{ title: string; }> = ({ onClose, title }) => { return ( - - {title} + + {title} {onClose && ( = ({ className, }) => { const renderBackdrop = () => { - return ; + return ( + + ); }; return ( {children} diff --git a/crates/librqbit/webui/src/components/modal/ModalBody.tsx b/crates/librqbit/webui/src/components/modal/ModalBody.tsx index 45fb285..3168d44 100644 --- a/crates/librqbit/webui/src/components/modal/ModalBody.tsx +++ b/crates/librqbit/webui/src/components/modal/ModalBody.tsx @@ -1,5 +1,5 @@ import { ReactNode } from "react"; export const ModalBody = ({ children }: { children: ReactNode }) => { - return {children}; + return {children}; };
+
Are you sure you want to delete the torrent?