Differences From Artifact [87647bcb66]:
- File src/style.chat.css — part of check-in [c7fa9f150f] at 2021-10-07 04:07:02 on branch trunk — /chat another CSS-side contenteditable portability workaround to keep Firefox from losing newlines on pasted-in text. (user: stephan size: 15233)
To Artifact [3f1486cb11]:
- File src/style.chat.css — part of check-in [503395796e] at 2021-10-07 16:27:52 on branch trunk — /chat: 1) force the cursor on the input element to always be 'text' (I-beam), even when it doesn't have focus (browser inconsistency) and 2) when the chat window regains visibility after having lost it, give focus to the input element to try to work around a problem where Pale Moon is giving focus to one of the pseudo-buttons. Change (2) comes with a couple of minor but annoying quirks and might have to be undone, but it's worth a try. (user: stephan size: 15388) [more...]
︙ | |||
189 190 191 192 193 194 195 196 197 198 199 200 201 202 | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | + + + | flex: 10 1 auto; background-color: rgba(156,156,156,0.3); overflow: auto; resize: vertical; white-space: pre-wrap; /* ^^^ Firefox, when pasting plain text into a contenteditable field, loses all newlines unless we explicitly set this. Chrome does not. */ cursor: text; /* ^^^ In some browsers the cursor may not change for a contenteditable element until it has focus, causing potential confusion. */ } #chat-input-field:empty::before { content: attr(data-placeholder); opacity: 0.6; } #chat-input-field:not(:focus){ border-width: 1px; |
︙ |