kopia lustrzana https://github.com/cheeaun/phanpy
Clean up styles for textarea
rodzic
23e2f59033
commit
117ac3892a
|
@ -239,11 +239,6 @@ const Textarea = forwardRef((props, ref) => {
|
|||
throttleHighlightText(text);
|
||||
debouncedAutoDetectLanguage();
|
||||
}}
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '4em',
|
||||
// '--text-weight': (1 + charCount / 140).toFixed(1) || 1,
|
||||
}}
|
||||
onScroll={(e) => {
|
||||
if (composeHighlightRef.current) {
|
||||
const { scrollTop } = e.target;
|
||||
|
|
|
@ -167,9 +167,9 @@
|
|||
}
|
||||
|
||||
#compose-container .compose-field {
|
||||
height: 5em;
|
||||
height: var(--height);
|
||||
min-height: 5em;
|
||||
width: 100%;
|
||||
height: 4em;
|
||||
min-height: 4em;
|
||||
max-height: 50vh;
|
||||
resize: vertical;
|
||||
border-radius: 0;
|
||||
|
@ -1070,7 +1070,7 @@
|
|||
rtl-ordering: logical;
|
||||
overflow-wrap: break-word;
|
||||
white-space: pre-wrap;
|
||||
min-height: 5em;
|
||||
min-height: 4em;
|
||||
max-height: 50vh;
|
||||
scrollbar-width: none;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue