Fossil SCM
Added the chat input area resize option to compact mode so there is a recovery strategy if someone manages to paste a whole book into that field.
Commit
797e33ba6ba0bbd6d5143b6cbf439577202d394fade24ce3136d3a054e2a794d
Parent
2b07b66d5942c69…
1 file changed
+1
-1
+1
-1
| --- src/style.chat.css | ||
| +++ src/style.chat.css | ||
| @@ -187,10 +187,11 @@ | ||
| 187 | 187 | display: inline-block/*supposed workaround for Chrome weirdness*/; |
| 188 | 188 | padding: 0.2em; |
| 189 | 189 | flex: 10 1 auto; |
| 190 | 190 | background-color: rgba(156,156,156,0.3); |
| 191 | 191 | overflow: auto; |
| 192 | + resize: vertical; | |
| 192 | 193 | } |
| 193 | 194 | #chat-input-field:empty::before { |
| 194 | 195 | content: attr(data-placeholder); |
| 195 | 196 | opacity: 0.6; |
| 196 | 197 | } |
| @@ -277,11 +278,10 @@ | ||
| 277 | 278 | /*border-left-style: double; |
| 278 | 279 | border-left-width: 3px; |
| 279 | 280 | border-right-style: double; |
| 280 | 281 | border-right-width: 3px;*/ |
| 281 | 282 | min-height: 4rem; |
| 282 | - resize: both; | |
| 283 | 283 | /*max-height: 50rem;*/ |
| 284 | 284 | /* |
| 285 | 285 | Problems related to max-height: |
| 286 | 286 | |
| 287 | 287 | - If we do NOT set a max-height then pasting/typing a large amount |
| 288 | 288 |
| --- src/style.chat.css | |
| +++ src/style.chat.css | |
| @@ -187,10 +187,11 @@ | |
| 187 | display: inline-block/*supposed workaround for Chrome weirdness*/; |
| 188 | padding: 0.2em; |
| 189 | flex: 10 1 auto; |
| 190 | background-color: rgba(156,156,156,0.3); |
| 191 | overflow: auto; |
| 192 | } |
| 193 | #chat-input-field:empty::before { |
| 194 | content: attr(data-placeholder); |
| 195 | opacity: 0.6; |
| 196 | } |
| @@ -277,11 +278,10 @@ | |
| 277 | /*border-left-style: double; |
| 278 | border-left-width: 3px; |
| 279 | border-right-style: double; |
| 280 | border-right-width: 3px;*/ |
| 281 | min-height: 4rem; |
| 282 | resize: both; |
| 283 | /*max-height: 50rem;*/ |
| 284 | /* |
| 285 | Problems related to max-height: |
| 286 | |
| 287 | - If we do NOT set a max-height then pasting/typing a large amount |
| 288 |
| --- src/style.chat.css | |
| +++ src/style.chat.css | |
| @@ -187,10 +187,11 @@ | |
| 187 | display: inline-block/*supposed workaround for Chrome weirdness*/; |
| 188 | padding: 0.2em; |
| 189 | flex: 10 1 auto; |
| 190 | background-color: rgba(156,156,156,0.3); |
| 191 | overflow: auto; |
| 192 | resize: vertical; |
| 193 | } |
| 194 | #chat-input-field:empty::before { |
| 195 | content: attr(data-placeholder); |
| 196 | opacity: 0.6; |
| 197 | } |
| @@ -277,11 +278,10 @@ | |
| 278 | /*border-left-style: double; |
| 279 | border-left-width: 3px; |
| 280 | border-right-style: double; |
| 281 | border-right-width: 3px;*/ |
| 282 | min-height: 4rem; |
| 283 | /*max-height: 50rem;*/ |
| 284 | /* |
| 285 | Problems related to max-height: |
| 286 | |
| 287 | - If we do NOT set a max-height then pasting/typing a large amount |
| 288 |