Fossil SCM

Made monospace the default because that setting now also applies to the input area and this chat is often used for conveying code. Accounted for a couple bits of skin-specific weirdness.

stephan 2021-10-01 12:48 chat-input-rework
Commit f9e2851a998b29ea6d18cbc3b40aac381c2ac89f423a420faad86ba85d513fd5
--- skins/xekri/css.txt
+++ skins/xekri/css.txt
@@ -1155,12 +1155,12 @@
11551155
}
11561156
11571157
body.chat div.header, body.chat div.footer,
11581158
body.chat div.mainmenu, body.chat div.submenu,
11591159
body.chat div.content {
1160
- margin-left: auto;
1161
- margin-right: auto;
1160
+ margin-left: 0.5em;
1161
+ margin-right: 0.5em;
11621162
margin-top: auto/*eliminates unnecessary scrollbars*/;
11631163
}
11641164
body.chat.chat-only-mode div.content {
11651165
max-width: revert;
11661166
}
11671167
--- skins/xekri/css.txt
+++ skins/xekri/css.txt
@@ -1155,12 +1155,12 @@
1155 }
1156
1157 body.chat div.header, body.chat div.footer,
1158 body.chat div.mainmenu, body.chat div.submenu,
1159 body.chat div.content {
1160 margin-left: auto;
1161 margin-right: auto;
1162 margin-top: auto/*eliminates unnecessary scrollbars*/;
1163 }
1164 body.chat.chat-only-mode div.content {
1165 max-width: revert;
1166 }
1167
--- skins/xekri/css.txt
+++ skins/xekri/css.txt
@@ -1155,12 +1155,12 @@
1155 }
1156
1157 body.chat div.header, body.chat div.footer,
1158 body.chat div.mainmenu, body.chat div.submenu,
1159 body.chat div.content {
1160 margin-left: 0.5em;
1161 margin-right: 0.5em;
1162 margin-top: auto/*eliminates unnecessary scrollbars*/;
1163 }
1164 body.chat.chat-only-mode div.content {
1165 max-width: revert;
1166 }
1167
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -377,11 +377,11 @@
377377
},
378378
defaults:{
379379
"images-inline": !!F.config.chat.imagesInline,
380380
"edit-ctrl-send": false,
381381
"edit-compact-mode": true,
382
- "monospace-messages": false,
382
+ "monospace-messages": true,
383383
"chat-only-mode": false,
384384
"audible-alert": true,
385385
"active-user-list": false,
386386
"active-user-list-timestamps": false
387387
}
388388
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -377,11 +377,11 @@
377 },
378 defaults:{
379 "images-inline": !!F.config.chat.imagesInline,
380 "edit-ctrl-send": false,
381 "edit-compact-mode": true,
382 "monospace-messages": false,
383 "chat-only-mode": false,
384 "audible-alert": true,
385 "active-user-list": false,
386 "active-user-list-timestamps": false
387 }
388
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -377,11 +377,11 @@
377 },
378 defaults:{
379 "images-inline": !!F.config.chat.imagesInline,
380 "edit-ctrl-send": false,
381 "edit-compact-mode": true,
382 "monospace-messages": true,
383 "chat-only-mode": false,
384 "audible-alert": true,
385 "active-user-list": false,
386 "active-user-list-timestamps": false
387 }
388
--- src/style.chat.css
+++ src/style.chat.css
@@ -10,10 +10,14 @@
1010
display: flex;
1111
flex-direction: column;
1212
border: none;
1313
align-items: flex-start;
1414
}
15
+body.chat button,
16
+body.chat input[type=button] {
17
+ line-height: inherit/*undo skin-specific funkiness*/;
18
+}
1519
body.chat .message-widget:last-of-type {
1620
/* Latest message: reduce bottom gap */
1721
margin-bottom: 0.1em;
1822
}
1923
body.chat.my-messages-right .message-widget.mine {
@@ -233,10 +237,11 @@
233237
margin-top: 0.25em;
234238
}
235239
body.chat #chat-edit-buttons > * {
236240
flex: 1 1 auto;
237241
padding: initial/*some skins mess this up for buttons*/;
242
+ line-height: inherit/*undo skin funkiness*/;
238243
}
239244
body.chat #chat-input-line:not(.compact) #chat-edit-buttons > * {
240245
max-width: 4em;
241246
max-height: 4em;
242247
margin: 0.25em;
243248
--- src/style.chat.css
+++ src/style.chat.css
@@ -10,10 +10,14 @@
10 display: flex;
11 flex-direction: column;
12 border: none;
13 align-items: flex-start;
14 }
 
 
 
 
15 body.chat .message-widget:last-of-type {
16 /* Latest message: reduce bottom gap */
17 margin-bottom: 0.1em;
18 }
19 body.chat.my-messages-right .message-widget.mine {
@@ -233,10 +237,11 @@
233 margin-top: 0.25em;
234 }
235 body.chat #chat-edit-buttons > * {
236 flex: 1 1 auto;
237 padding: initial/*some skins mess this up for buttons*/;
 
238 }
239 body.chat #chat-input-line:not(.compact) #chat-edit-buttons > * {
240 max-width: 4em;
241 max-height: 4em;
242 margin: 0.25em;
243
--- src/style.chat.css
+++ src/style.chat.css
@@ -10,10 +10,14 @@
10 display: flex;
11 flex-direction: column;
12 border: none;
13 align-items: flex-start;
14 }
15 body.chat button,
16 body.chat input[type=button] {
17 line-height: inherit/*undo skin-specific funkiness*/;
18 }
19 body.chat .message-widget:last-of-type {
20 /* Latest message: reduce bottom gap */
21 margin-bottom: 0.1em;
22 }
23 body.chat.my-messages-right .message-widget.mine {
@@ -233,10 +237,11 @@
237 margin-top: 0.25em;
238 }
239 body.chat #chat-edit-buttons > * {
240 flex: 1 1 auto;
241 padding: initial/*some skins mess this up for buttons*/;
242 line-height: inherit/*undo skin funkiness*/;
243 }
244 body.chat #chat-input-line:not(.compact) #chat-edit-buttons > * {
245 max-width: 4em;
246 max-height: 4em;
247 margin: 0.25em;
248

Keyboard Shortcuts

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