change overflow behaviour in chat input (#3167)
Firefox only breaks at word boundaries by default, meaning we need a horizontal scrollbar to handle long words like AAAAAAAAAAAAAAAAAAAAAAAAAAAAA. Co-authored-by: janWilejan <>
This commit is contained in:
parent
db449bb685
commit
f889113526
@ -6,7 +6,6 @@
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
padding: 0.6em;
|
||||
overflow-x: hidden;
|
||||
background-color: var(--theme-color-components-chat-background);
|
||||
|
||||
.inputWrap {
|
||||
@ -18,7 +17,6 @@
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
padding: 0.3rem;
|
||||
overflow-x: hidden;
|
||||
transition: box-shadow 90ms ease-in-out;
|
||||
|
||||
&:focus-within {
|
||||
@ -50,6 +48,7 @@
|
||||
max-height: 40px; // 2 lines of text
|
||||
min-height: 30px;
|
||||
cursor: text;
|
||||
overflow-x: auto;
|
||||
|
||||
&:focus {
|
||||
outline: 1px solid var(--color-owncast-gray-500) !important;
|
||||
|
Loading…
x
Reference in New Issue
Block a user