From 28b2599e75507d56c835ed27e0e7c7eb7bfb3563 Mon Sep 17 00:00:00 2001 From: J Francisco Rader Date: Fri, 5 Feb 2021 16:09:31 -0500 Subject: [PATCH] Fix zoom origin --- phone/src/Phone.css | 5 +++-- phone/src/Phone.tsx | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/phone/src/Phone.css b/phone/src/Phone.css index 593f50e..bd517ae 100644 --- a/phone/src/Phone.css +++ b/phone/src/Phone.css @@ -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; diff --git a/phone/src/Phone.tsx b/phone/src/Phone.tsx index 76093f1..e2a7d94 100644 --- a/phone/src/Phone.tsx +++ b/phone/src/Phone.tsx @@ -323,9 +323,12 @@ function Phone() { return ( -
+
-
+