Compare commits
No commits in common. "80247383342b688a995c792434d976fdb40ab667" and "3e6b89ab394456105be38ec2498dab8f06db629f" have entirely different histories.
8024738334
...
3e6b89ab39
@ -72,7 +72,7 @@
|
|||||||
"fullscreen": false,
|
"fullscreen": false,
|
||||||
"resizable": true,
|
"resizable": true,
|
||||||
"title": "漫画阅读器",
|
"title": "漫画阅读器",
|
||||||
"width": 1200,
|
"width": 1000,
|
||||||
"height": 800
|
"height": 800
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -33,8 +33,7 @@ export const NavMenu: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
spacing={8}
|
spacing={8}
|
||||||
w={300}
|
miw={220}
|
||||||
mw={200}
|
|
||||||
h="inherit"
|
h="inherit"
|
||||||
sx={theme => ({
|
sx={theme => ({
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
|
@ -20,7 +20,7 @@ export const ContinuationView: FC = () => {
|
|||||||
},
|
},
|
||||||
[files]
|
[files]
|
||||||
);
|
);
|
||||||
const maxImageWidth = useMemo(() => Math.floor(viewWidth * (zoom / 100)), [viewWidth, zoom]);
|
const maxImageWidth = useMemo(() => viewWidth * (zoom / 100), [viewWidth, zoom]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
ebus?.addListener('navigate_offset', ({ filename }) => {
|
ebus?.addListener('navigate_offset', ({ filename }) => {
|
||||||
@ -59,7 +59,7 @@ export const ContinuationView: FC = () => {
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'flex-start',
|
alignItems: 'flex-start',
|
||||||
width: '100%',
|
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 }} />
|
<img src={files[index].path} style={{ width: maxImageWidth }} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user