Fossil SCM

In single-line edit mode, wrap the chat buttons if the screen is not "wide enough." Give the edit field a min-width of (experimentally) 24em.

stephan 2021-09-21 13:18 chat-markdown
Commit 3ca1ec524861466b8d9383f089b0b1b92f2d6eeade5413643579462a212743bc
1 file changed +4
--- src/style.chat.css
+++ src/style.chat.css
@@ -220,10 +220,13 @@
220220
body.chat #chat-input-line {
221221
display: flex;
222222
flex-direction: row;
223223
margin-bottom: 0.25em;
224224
align-items: stretch;
225
+}
226
+body.chat #chat-input-line.single-line {
227
+ flex-wrap: wrap;
225228
}
226229
body.chat #chat-edit-buttons {
227230
display: flex;
228231
flex-direction: column;
229232
justify-content: space-between;
@@ -245,10 +248,11 @@
245248
}
246249
body.chat #chat-input-line > input[type=text],
247250
body.chat #chat-input-line > textarea {
248251
flex: 5 1 auto;
249252
max-width: revert;
253
+ min-width: 24em;
250254
}
251255
/* Widget holding the file selection control and preview */
252256
body.chat #chat-input-file-area {
253257
display: flex;
254258
flex-direction: row;
255259
--- src/style.chat.css
+++ src/style.chat.css
@@ -220,10 +220,13 @@
220 body.chat #chat-input-line {
221 display: flex;
222 flex-direction: row;
223 margin-bottom: 0.25em;
224 align-items: stretch;
 
 
 
225 }
226 body.chat #chat-edit-buttons {
227 display: flex;
228 flex-direction: column;
229 justify-content: space-between;
@@ -245,10 +248,11 @@
245 }
246 body.chat #chat-input-line > input[type=text],
247 body.chat #chat-input-line > textarea {
248 flex: 5 1 auto;
249 max-width: revert;
 
250 }
251 /* Widget holding the file selection control and preview */
252 body.chat #chat-input-file-area {
253 display: flex;
254 flex-direction: row;
255
--- src/style.chat.css
+++ src/style.chat.css
@@ -220,10 +220,13 @@
220 body.chat #chat-input-line {
221 display: flex;
222 flex-direction: row;
223 margin-bottom: 0.25em;
224 align-items: stretch;
225 }
226 body.chat #chat-input-line.single-line {
227 flex-wrap: wrap;
228 }
229 body.chat #chat-edit-buttons {
230 display: flex;
231 flex-direction: column;
232 justify-content: space-between;
@@ -245,10 +248,11 @@
248 }
249 body.chat #chat-input-line > input[type=text],
250 body.chat #chat-input-line > textarea {
251 flex: 5 1 auto;
252 max-width: revert;
253 min-width: 24em;
254 }
255 /* Widget holding the file selection control and preview */
256 body.chat #chat-input-file-area {
257 display: flex;
258 flex-direction: row;
259

Keyboard Shortcuts

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