Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ea8e37

Browse files
authored
UX: remove homepage textarea resize, height & focus tweaks (#6)
1 parent 0e87ed5 commit 5ea8e37

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

common/common.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,18 @@ html.composer-open .custom-homepage #main-outlet {
277277

278278
.btn-primary {
279279
align-self: end;
280+
min-height: 2.5em;
280281
}
281282

282283
#custom-homepage-input {
283284
width: 100%;
284285
margin: 0;
285-
min-height: 2.33em;
286+
resize: none;
287+
border-radius: var(--d-button-border-radius);
288+
&:focus {
289+
outline: none;
290+
border-color: var(--primary-high);
291+
}
286292
}
287293
}
288294

javascripts/discourse/lib/simple-textarea-interactor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class SimpleTextareaInteractor {
2323
refreshHeight() {
2424
schedule("afterRender", () => {
2525
this.textarea.style.height = "auto";
26-
this.textarea.style.height = `${this.textarea.scrollHeight + 1}px`;
26+
this.textarea.style.height = `${this.textarea.scrollHeight + 2}px`;
2727
});
2828
}
2929
}

0 commit comments

Comments
 (0)