Compare commits

..

No commits in common. "80247383342b688a995c792434d976fdb40ab667" and "3e6b89ab394456105be38ec2498dab8f06db629f" have entirely different histories.

3 changed files with 4 additions and 5 deletions

View File

@ -72,7 +72,7 @@
"fullscreen": false,
"resizable": true,
"title": "漫画阅读器",
"width": 1200,
"width": 1000,
"height": 800
}
]

View File

@ -33,8 +33,7 @@ export const NavMenu: FC = () => {
return (
<Stack
spacing={8}
w={300}
mw={200}
miw={220}
h="inherit"
sx={theme => ({
flexGrow: 1,

View File

@ -20,7 +20,7 @@ export const ContinuationView: FC = () => {
},
[files]
);
const maxImageWidth = useMemo(() => Math.floor(viewWidth * (zoom / 100)), [viewWidth, zoom]);
const maxImageWidth = useMemo(() => viewWidth * (zoom / 100), [viewWidth, zoom]);
useEffect(() => {
ebus?.addListener('navigate_offset', ({ filename }) => {
@ -59,7 +59,7 @@ export const ContinuationView: FC = () => {
justifyContent: 'center',
alignItems: 'flex-start',
width: '100%',
height: Math.round(files[index].height * (maxImageWidth / files[index].width))
height: files[index].height * (maxImageWidth / files[index].width)
}}
>
<img src={files[index].path} style={{ width: maxImageWidth }} />