Skip to content

Commit efb9d8f

Browse files
committed
fix: modal resizing slower than cursor
1 parent ed7118d commit efb9d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Modal/Modal.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
@import 'stylesheets/globals.scss';
99

1010
.modal {
11-
@include modalAnimation();
1211
--modal-min-width: 540px;
1312
position: absolute;
1413
top: 50%;
15-
left: 50%;
14+
left: calc(50% - var(--modal-min-width) / 2);
1615
width: auto;
1716
min-width: var(--modal-min-width);
1817
background: white;
1918
border-radius: 5px;
2019
overflow: hidden;
20+
transform: translateY(-50%);
2121

2222
> *:not(:first-child):not(:last-child) {
2323
border-color: $borderGrey;

0 commit comments

Comments
 (0)