mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +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 {
|
||||
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
@@ -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={{
|
||||
|
||||
Reference in new issue
Block a user