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