style(cleaner-history): widen operation history modal to 140%

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-04-14 10:29:54 +08:00
parent 6f49596467
commit 35cad8baa9
2 changed files with 5 additions and 2 deletions

View File

@@ -749,7 +749,7 @@ export const CleanerOperationHistoryModal: React.FC<CleanerOperationHistoryModal
if (!isOpen) return null
return (
<Modal isOpen={isOpen} onClose={onClose} title="清理操作历史" size="3xl">
<Modal isOpen={isOpen} onClose={onClose} title="清理操作历史" size="3xl" className="!max-w-[68rem]">
<div className="flex flex-col h-[70vh]">
{/* Toolbar */}
<div className="flex items-start justify-between mb-4 pb-4 border-b border-gray-200">

View File

@@ -15,6 +15,8 @@ interface ModalProps {
title?: string
children: React.ReactNode
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'
/** Additional CSS classes for the modal panel */
className?: string
showCloseButton?: boolean
/** Ref to the element that triggered opening the modal (for focus restoration) */
triggerRef?: React.RefObject<HTMLElement | null>
@@ -47,6 +49,7 @@ export function Modal({
title,
children,
size = 'md',
className,
showCloseButton = true,
triggerRef,
titleId,
@@ -98,7 +101,7 @@ export function Modal({
<div className="flex min-h-full items-center justify-center p-4">
<div
ref={dialogRef}
className={`relative w-full ${sizeStyles[size]} bg-white rounded-lg shadow-xl transform transition-all`}
className={`relative w-full ${sizeStyles[size]} bg-white rounded-lg shadow-xl transform transition-all ${className || ''}`}
onClick={(e) => e.stopPropagation()}
>
{/* Header */}