fix: various tweaks on style and layout (#499)

This commit is contained in:
nnecec
2025-03-06 17:51:06 +08:00
committed by GitHub
parent d0e6f3ad50
commit 088c7d2c49
2 changed files with 5 additions and 3 deletions
@@ -64,7 +64,7 @@ const SettingsDialog: React.FC<{ bookKey: string; config: BookConfig }> = ({ boo
isOpen={true}
onClose={handleClose}
className='modal-open'
boxClassName='sm:min-w-[480px]'
boxClassName='sm:min-w-[520px]'
header={
<div className='flex w-full items-center justify-between'>
<button
@@ -76,12 +76,12 @@ const SettingsDialog: React.FC<{ bookKey: string; config: BookConfig }> = ({ boo
>
<MdArrowBackIosNew />
</button>
<div className='dialog-tabs flex h-10 max-w-[100%] flex-grow items-center justify-around pl-4'>
<div className='dialog-tabs flex h-10 max-w-[100%] flex-grow items-center pl-4 gap-2'>
{tabConfig.map(({ tab, icon: Icon, label }) => (
<button
key={tab}
className={clsx(
'btn btn-ghost text-base-content h-8 min-h-8',
'btn btn-ghost text-base-content btn-sm',
activePanel === tab ? 'btn-active' : '',
)}
onClick={() => setActivePanel(tab)}
+2
View File
@@ -7,6 +7,7 @@
--foreground: #171717;
border-radius: 10px;
scrollbar-gutter: auto !important;
overscroll-behavior: none;
}
@media (prefers-color-scheme: dark) {
@@ -35,6 +36,7 @@ body {
sans-serif;
border-radius: 10px;
background-color: transparent;
cursor: default;
}
@layer utilities {