Fix formatting
This commit is contained in:
@@ -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}>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
|
|||||||
slotProps={{
|
slotProps={{
|
||||||
list: {
|
list: {
|
||||||
'aria-labelledby': 'chaptersMenuButton',
|
'aria-labelledby': 'chaptersMenuButton',
|
||||||
}
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
|||||||
@@ -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 ||
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) =
|
|||||||
slotProps={{
|
slotProps={{
|
||||||
paper: {
|
paper: {
|
||||||
ref,
|
ref,
|
||||||
}
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user