Fix formatting

This commit is contained in:
schroda
2026-04-27 17:30:14 +02:00
parent f36a204ed7
commit 425a9bca5e
6 changed files with 14 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ export function GridLayouts({
open={open}
onClose={handleClose}
slotProps={{
list: { 'aria-labelledby': 'basic-button' }
list: { 'aria-labelledby': 'basic-button' },
}}
>
<MenuItem onClick={handleClose}>

View File

@@ -32,7 +32,7 @@ export const TextSetting = (props: TextSettingProps) => {
slotProps={{
secondary: {
sx: { display: 'flex', flexDirection: 'column', wordWrap: 'break-word' },
}
},
}}
/>
</ListItemButton>

View File

@@ -131,7 +131,7 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
slotProps={{
list: {
'aria-labelledby': 'chaptersMenuButton',
}
},
}}
>
<MenuItem

View File

@@ -56,14 +56,18 @@ export const Thumbnail = ({
imageRequest = await requestManager.requestImage(url);
const image = await imageRequest.response;
if (aborted) {return;}
if (aborted) {
return;
}
const img = new Image();
img.crossOrigin = 'anonymous';
img.src = image;
img.onload = () => {
if (aborted) {return;}
if (aborted) {
return;
}
const isLargeImage = img.width > 600 && img.height > 900;
@@ -78,7 +82,9 @@ export const Thumbnail = ({
],
}),
]).then(([palette, averageColor]) => {
if (aborted) {return;}
if (aborted) {
return;
}
if (
!palette.Vibrant ||

View File

@@ -57,7 +57,7 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) =
slotProps={{
paper: {
ref,
}
},
}}
>
<Box

View File

@@ -66,7 +66,7 @@ function ListDialog(props: IListDialogProps) {
open={open}
onClose={handleCancel}
slotProps={{
transition: { onEntering: handleEntering }
transition: { onEntering: handleEntering },
}}
>
<DialogTitle>{title}</DialogTitle>