aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/trails/PresBox.scss
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2024-04-28 13:48:41 -0400
committerSophie Zhang <sophie_zhang@brown.edu>2024-04-28 13:48:41 -0400
commit53ccca391d317f3d9b7c5cb693979451a4655836 (patch)
tree1fdc4c0704c7c50980d2bb97c8bcd2699e753427 /src/client/views/nodes/trails/PresBox.scss
parent400ee4e8ed1ed2b8b4b356731aae79aafe272e25 (diff)
fix transform origin
Diffstat (limited to 'src/client/views/nodes/trails/PresBox.scss')
-rw-r--r--src/client/views/nodes/trails/PresBox.scss12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/views/nodes/trails/PresBox.scss b/src/client/views/nodes/trails/PresBox.scss
index 7a2733146..2c56cf698 100644
--- a/src/client/views/nodes/trails/PresBox.scss
+++ b/src/client/views/nodes/trails/PresBox.scss
@@ -47,9 +47,12 @@
.presBox-effect-container {
cursor: pointer;
overflow: hidden;
- position: relative;
+ // position: relative;
width: 80px;
height: 80px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
/* background-color: #1f2028; */
border: 1px solid rgb(118, 118, 118);
border-radius: 8px;
@@ -58,12 +61,13 @@
.presBox-effect-demo-box {
width: 40px;
height: 40px;
- position: absolute;
- top: 20px;
- left: 20px;
+ // position: absolute;
+ // top: 20px;
+ // left: 20px;
border-radius: 4px;
// default bg
background-color: rgb(37, 161, 255);
+ // transform-origin: center;
}
// Bezier editor