fix: prevent cutting off overlay (#1829)

Co-authored-by: Christoph Rohrer <christoph.rohrer@odt.net>
This commit is contained in:
Chris Rohrer
2024-01-09 17:50:47 -08:00
committed by GitHub
co-authored by Christoph Rohrer
parent 6261f17561
commit dc5b5238c8
2 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -198,7 +198,8 @@
}
#stylePreviewOverlay {
display: none;
opacity: 0;
pointer-events: none;
width: 128px;
height: 128px;
position: fixed;
@@ -208,6 +209,12 @@
transform: translate(-140px, 20px);
background-size: cover;
background-position: center;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 5px;
z-index: 100;
transition: transform 0.1s ease, opacity 0.3s ease;
}
#stylePreviewOverlay.lower-half {
transform: translate(-140px, -140px);
}