Skip to content

Commit 26a602e

Browse files
committed
fix: textarea resizable smaller than modal
1 parent 67f9872 commit 26a602e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/TextInput/TextInput.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
background: $inputBackgroundColor;
1515
font-size: 16px;
1616
width: 100%;
17-
min-width: calc(
18-
var(--modal-min-width, 540px) * (1 - var(--modal-label-ratio, 0.5))
17+
min-width: max(
18+
100%,
19+
calc(var(--modal-min-width, 540px) * (1 - var(--modal-label-ratio, 0.5)))
1920
);
21+
min-height: 100%;
2022
padding: 6px;
2123
vertical-align: top;
2224
resize: both;

0 commit comments

Comments
 (0)