Compare commits
2 Commits
3e6b89ab39
...
8024738334
Author | SHA1 | Date | |
---|---|---|---|
|
8024738334 | ||
|
2fc2bd7185 |
@ -72,7 +72,7 @@
|
||||
"fullscreen": false,
|
||||
"resizable": true,
|
||||
"title": "漫画阅读器",
|
||||
"width": 1000,
|
||||
"width": 1200,
|
||||
"height": 800
|
||||
}
|
||||
]
|
||||
|
@ -33,7 +33,8 @@ export const NavMenu: FC = () => {
|
||||
return (
|
||||
<Stack
|
||||
spacing={8}
|
||||
miw={220}
|
||||
w={300}
|
||||
mw={200}
|
||||
h="inherit"
|
||||
sx={theme => ({
|
||||
flexGrow: 1,
|
||||
|
@ -20,7 +20,7 @@ export const ContinuationView: FC = () => {
|
||||
},
|
||||
[files]
|
||||
);
|
||||
const maxImageWidth = useMemo(() => viewWidth * (zoom / 100), [viewWidth, zoom]);
|
||||
const maxImageWidth = useMemo(() => Math.floor(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: files[index].height * (maxImageWidth / files[index].width)
|
||||
height: Math.round(files[index].height * (maxImageWidth / files[index].width))
|
||||
}}
|
||||
>
|
||||
<img src={files[index].path} style={{ width: maxImageWidth }} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user