Fossil SCM

Fixed chat-view scrolling, which was broken by a flexbox settings change in [71fbd1b01ba42ee6].

stephan 2021-10-01 14:01 UTC chat-input-rework
Commit e7e2e5e3c063503c73642cf796292460ce622c0b820f5341985c65a22f211673
1 file changed +3 -2
--- src/style.chat.css
+++ src/style.chat.css
@@ -337,12 +337,13 @@
337337
body.chat #chat-drop-details img {
338338
max-width: 45%;
339339
max-height: 45%;
340340
}
341341
body.chat .chat-view {
342
- flex: 20 0 auto
343
- /*ensure that these grow more than the non-.chat-view elements*/;
342
+ flex: 20 1 auto
343
+ /*ensure that these grow more than the non-.chat-view elements.
344
+ Note that setting flex shrink to 0 breaks/disables scrolling!*/;
344345
margin-bottom: 0.2em;
345346
}
346347
body.chat #chat-config,
347348
body.chat #chat-preview {
348349
/* /chat configuration widget */
349350
--- src/style.chat.css
+++ src/style.chat.css
@@ -337,12 +337,13 @@
337 body.chat #chat-drop-details img {
338 max-width: 45%;
339 max-height: 45%;
340 }
341 body.chat .chat-view {
342 flex: 20 0 auto
343 /*ensure that these grow more than the non-.chat-view elements*/;
 
344 margin-bottom: 0.2em;
345 }
346 body.chat #chat-config,
347 body.chat #chat-preview {
348 /* /chat configuration widget */
349
--- src/style.chat.css
+++ src/style.chat.css
@@ -337,12 +337,13 @@
337 body.chat #chat-drop-details img {
338 max-width: 45%;
339 max-height: 45%;
340 }
341 body.chat .chat-view {
342 flex: 20 1 auto
343 /*ensure that these grow more than the non-.chat-view elements.
344 Note that setting flex shrink to 0 breaks/disables scrolling!*/;
345 margin-bottom: 0.2em;
346 }
347 body.chat #chat-config,
348 body.chat #chat-preview {
349 /* /chat configuration widget */
350

Keyboard Shortcuts

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