Fix formatting
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -32,7 +32,7 @@ export const TextSetting = (props: TextSettingProps) => {
|
||||
slotProps={{
|
||||
secondary: {
|
||||
sx: { display: 'flex', flexDirection: 'column', wordWrap: 'break-word' },
|
||||
}
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</ListItemButton>
|
||||
|
||||
@@ -131,7 +131,7 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
|
||||
slotProps={{
|
||||
list: {
|
||||
'aria-labelledby': 'chaptersMenuButton',
|
||||
}
|
||||
},
|
||||
}}
|
||||
>
|
||||
<MenuItem
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
@@ -57,7 +57,7 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) =
|
||||
slotProps={{
|
||||
paper: {
|
||||
ref,
|
||||
}
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
|
||||
@@ -66,7 +66,7 @@ function ListDialog(props: IListDialogProps) {
|
||||
open={open}
|
||||
onClose={handleCancel}
|
||||
slotProps={{
|
||||
transition: { onEntering: handleEntering }
|
||||
transition: { onEntering: handleEntering },
|
||||
}}
|
||||
>
|
||||
<DialogTitle>{title}</DialogTitle>
|
||||
|
||||
Reference in New Issue
Block a user