diff --git a/src/renderer/src/components/modal/modal.css.ts b/src/renderer/src/components/modal/modal.css.ts index 0e0df4c3..8604ecdc 100644 --- a/src/renderer/src/components/modal/modal.css.ts +++ b/src/renderer/src/components/modal/modal.css.ts @@ -22,7 +22,7 @@ export const modal = recipe({ animationDuration: "0.3s", backgroundColor: vars.color.background, borderRadius: "4px", - maxWidth: "600px", + maxWidth: "800px", color: vars.color.body, maxHeight: "100%", border: `solid 1px ${vars.color.border}`, @@ -37,6 +37,12 @@ export const modal = recipe({ opacity: 0, }, }, + large: { + true: { + width: "800px", + maxWidth: "800px", + }, + }, }, }); diff --git a/src/renderer/src/components/modal/modal.tsx b/src/renderer/src/components/modal/modal.tsx index f891b0f8..a71b781e 100644 --- a/src/renderer/src/components/modal/modal.tsx +++ b/src/renderer/src/components/modal/modal.tsx @@ -12,6 +12,7 @@ export interface ModalProps { title: string; description?: string; onClose: () => void; + large?: boolean; children: React.ReactNode; } @@ -20,6 +21,7 @@ export function Modal({ title, description, onClose, + large, children, }: ModalProps) { const [isClosing, setIsClosing] = useState(false); @@ -88,7 +90,7 @@ export function Modal({ return createPortal(
{ if (isGameDeleting(game?.id ?? -1)) return

{t("deleting")}

; - if (game?.progress === 1) return ; + if (game?.progress === 1 || game?.playTimeInMilliseconds) + return ; if (game?.status === "active") { if (lastPacket?.isDownloadingMetadata && isGameDownloading) { diff --git a/src/renderer/src/pages/game-details/modals/game-options-modal.tsx b/src/renderer/src/pages/game-details/modals/game-options-modal.tsx index 800b9084..656c20b6 100644 --- a/src/renderer/src/pages/game-details/modals/game-options-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/game-options-modal.tsx @@ -68,7 +68,12 @@ export function GameOptionsModal({ return ( <> - + setShowDeleteModal(false)}