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} open={open}
onClose={handleClose} onClose={handleClose}
slotProps={{ slotProps={{
list: { 'aria-labelledby': 'basic-button' } list: { 'aria-labelledby': 'basic-button' },
}} }}
> >
<MenuItem onClick={handleClose}> <MenuItem onClick={handleClose}>

View File

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

View File

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

View File

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

View File

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

View File

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