mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Fix zoom origin
This commit is contained in:
1 parent
5da2d680c6
commit
28b2599e75
2 files changed
+8
-4
No files matched your search
+3
-2
@@ -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
@@ -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={{
|
||||||
|
|||||||
Reference in new issue
Block a user