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.

stephan 2021-10-01 18:01 UTC chat-input-rework
Commit 797e33ba6ba0bbd6d5143b6cbf439577202d394fade24ce3136d3a054e2a794d
1 file changed +1 -1
--- src/style.chat.css
+++ src/style.chat.css
@@ -187,10 +187,11 @@
187187
display: inline-block/*supposed workaround for Chrome weirdness*/;
188188
padding: 0.2em;
189189
flex: 10 1 auto;
190190
background-color: rgba(156,156,156,0.3);
191191
overflow: auto;
192
+ resize: vertical;
192193
}
193194
#chat-input-field:empty::before {
194195
content: attr(data-placeholder);
195196
opacity: 0.6;
196197
}
@@ -277,11 +278,10 @@
277278
/*border-left-style: double;
278279
border-left-width: 3px;
279280
border-right-style: double;
280281
border-right-width: 3px;*/
281282
min-height: 4rem;
282
- resize: both;
283283
/*max-height: 50rem;*/
284284
/*
285285
Problems related to max-height:
286286
287287
- If we do NOT set a max-height then pasting/typing a large amount
288288
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button