css: background color for dialogs and images, closes #1797 (#1798)

This commit is contained in:
Huang Xin
2025-08-13 21:37:52 +08:00
committed by GitHub
parent ce345ad67f
commit db8f53a6e1
5 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ const Dialog: React.FC<DialogProps> = ({
>
<div
className={clsx(
'overlay fixed inset-0 z-10 bg-black/50 sm:bg-black/20',
'overlay fixed inset-0 z-10 bg-black/50 sm:bg-black/50',
appService?.hasRoundedWindow && 'rounded-window',
bgClassName,
)}
@@ -187,7 +187,6 @@ const BookDetailModal: React.FC<BookDetailModalProps> = ({
title={editMode ? _('Edit Metadata') : _('Book Details')}
isOpen={isOpen}
onClose={handleClose}
bgClassName='sm:bg-black/50'
boxClassName={clsx(
editMode ? 'sm:min-w-[600px] sm:max-w-[600px]' : 'sm:min-w-[480px] sm:max-w-[480px]',
'sm:h-auto sm:max-h-[90%]',