Fix zoom origin

This commit is contained in:
J Francisco Rader authored and Taso committed 2021-02-06 13:29:03 -05:00
1 parent 5da2d680c6
commit 28b2599e75
2 files changed
+8 -4

No files matched your search

+3 -2
View File
@@ -1,12 +1,13 @@
.PhoneWrapper { .PhoneWrapper {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
position: relative;
} }
.Phone { .Phone {
position: absolute; position: absolute;
bottom: 0vh; bottom: 0;
right: 0vh; right: 0;
width: 500px; width: 500px;
height: 1000px; height: 1000px;
background-size: cover; background-size: cover;
+5 -2
View File
@@ -323,9 +323,12 @@ function Phone() {
return ( return (
<ThemeProvider theme={currentTheme()}> <ThemeProvider theme={currentTheme()}>
<div className='PhoneWrapper' style={{ transform: `scale(${settings.zoom})` }}> <div className='PhoneWrapper'>
<div> <div>
<div className='Phone'> <div
className='Phone'
style={{ transformOrigin: 'right bottom', transform: `scale(${settings.zoom}` }}
>
<div <div
className='PhoneFrame' className='PhoneFrame'
style={{ style={{