Skip to content

Commit 82834fd

Browse files
authored
Merge pull request #2974 from Ri-Sharma/Issue#2973
Disable resizing the textarea in `CollectionCreate` modal
2 parents dea3584 + 25a8567 commit 82834fd

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

client/modules/User/components/CollectionCreate.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const CollectionCreate = () => {
7171
value={description}
7272
onChange={(e) => setDescription(e.target.value)}
7373
placeholder={t('CollectionCreate.DescriptionPlaceholder')}
74-
rows="4"
74+
rows="6"
7575
/>
7676
</p>
7777
<Button type="submit" disabled={invalid}>

client/styles/components/_collection-create.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22

33
.collection-create {
44
padding: #{math.div(24, $base-font-size)}rem;
5+
6+
@media (max-width: 650px) {
7+
.form__input {
8+
min-width: unset;
9+
}
10+
}
511
}

client/styles/components/_forms.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575

7676
.form__input-flexible-height {
7777
height: auto;
78+
resize: none;
7879
}
7980

8081
.form__input::placeholder {

client/styles/components/_overlay.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
max-height: 80%;
2828
max-width: 80%;
2929
position: relative;
30-
padding-bottom: #{math.div(25, $base-font-size)}rem;
30+
padding-bottom: #{math.div(12, $base-font-size)}rem;
3131

3232
@media (max-width: 650px) {
3333
max-width: 100%;
@@ -37,6 +37,10 @@
3737
}
3838
}
3939

40+
.overlay__body:has(.collection-create){
41+
max-height: none;
42+
}
43+
4044
.overlay__header {
4145
display: flex;
4246
justify-content: space-between;

0 commit comments

Comments
 (0)