mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-01-21 21:48:13 +00:00
fix preview
This commit is contained in:
parent
80b5307a27
commit
0578e73a15
@ -56,7 +56,7 @@ const PreviewPage = memo((props: PreviewPageProps) => {
|
|||||||
const width = useGetScrollBarWidth(ref);
|
const width = useGetScrollBarWidth(ref);
|
||||||
const pcStyle = useMemo(() => {
|
const pcStyle = useMemo(() => {
|
||||||
return {
|
return {
|
||||||
width: isMac ? 395 : 375 + width,
|
width: isMac ? 395 : 375 + width + 1, //小数会有偏差
|
||||||
margin: '20px auto',
|
margin: '20px auto',
|
||||||
border: '10px solid #000',
|
border: '10px solid #000',
|
||||||
borderRadius: '20px',
|
borderRadius: '20px',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user