Fossil SCM

Micro-adjustments to /chat CSS to squeeze a tiny bit more space from the bottom of the screen.

stephan 2021-09-22 12:22 trunk
Commit 62deb8f794905c4e54aeda81955981e59a00d82369d18a8dac507d1dda7980fd
2 files changed +1 -1 +2 -2
+1 -1
--- src/chat.js
+++ src/chat.js
@@ -74,11 +74,11 @@
7474
ht = wh - extra;
7575
}
7676
f.contentArea.style.height =
7777
f.contentArea.style.maxHeight = [
7878
"calc(", (ht>=100 ? ht : 100), "px",
79
- " - 1em"/*fudge value*/,")"
79
+ " - 0.75em"/*fudge value*/,")"
8080
/* ^^^^ hypothetically not needed, but both Chrome/FF on
8181
Linux will force scrollbars on the body if this value is
8282
too small (<0.75em in my tests). */
8383
].join('');
8484
if(false){
8585
--- src/chat.js
+++ src/chat.js
@@ -74,11 +74,11 @@
74 ht = wh - extra;
75 }
76 f.contentArea.style.height =
77 f.contentArea.style.maxHeight = [
78 "calc(", (ht>=100 ? ht : 100), "px",
79 " - 1em"/*fudge value*/,")"
80 /* ^^^^ hypothetically not needed, but both Chrome/FF on
81 Linux will force scrollbars on the body if this value is
82 too small (<0.75em in my tests). */
83 ].join('');
84 if(false){
85
--- src/chat.js
+++ src/chat.js
@@ -74,11 +74,11 @@
74 ht = wh - extra;
75 }
76 f.contentArea.style.height =
77 f.contentArea.style.maxHeight = [
78 "calc(", (ht>=100 ? ht : 100), "px",
79 " - 0.75em"/*fudge value*/,")"
80 /* ^^^^ hypothetically not needed, but both Chrome/FF on
81 Linux will force scrollbars on the body if this value is
82 too small (<0.75em in my tests). */
83 ].join('');
84 if(false){
85
--- src/style.chat.css
+++ src/style.chat.css
@@ -202,11 +202,11 @@
202202
display: flex;
203203
flex-direction: column;
204204
padding: 0.5em 0 0 0;
205205
border-bottom: none;
206206
border-top: 1px solid black;
207
- margin: 0.5em 0;
207
+ margin: 0.5em 0 0 0;
208208
position: initial /*sticky currently disabled due to scrolling-related issues*/;
209209
bottom: 0;
210210
}
211211
body.chat:not(.chat-only-mode) #chat-input-area{
212212
/* Safari user reports that 2em is necessary to keep the file selection
@@ -265,11 +265,11 @@
265265
body.chat #chat-input-file-area {
266266
display: flex;
267267
flex-direction: row;
268268
align-items: center;
269269
flex-wrap: wrap;
270
- margin-bottom: 0.25em 0 0 0 /* avoid nudging input area */;
270
+ margin: 0.25em 0 0 0 /* avoid nudging input area */;
271271
}
272272
body.chat #chat-input-file-area > .file-selection-wrapper {
273273
align-self: flex-start;
274274
margin-right: 0.5em;
275275
flex: 0 1 auto;
276276
--- src/style.chat.css
+++ src/style.chat.css
@@ -202,11 +202,11 @@
202 display: flex;
203 flex-direction: column;
204 padding: 0.5em 0 0 0;
205 border-bottom: none;
206 border-top: 1px solid black;
207 margin: 0.5em 0;
208 position: initial /*sticky currently disabled due to scrolling-related issues*/;
209 bottom: 0;
210 }
211 body.chat:not(.chat-only-mode) #chat-input-area{
212 /* Safari user reports that 2em is necessary to keep the file selection
@@ -265,11 +265,11 @@
265 body.chat #chat-input-file-area {
266 display: flex;
267 flex-direction: row;
268 align-items: center;
269 flex-wrap: wrap;
270 margin-bottom: 0.25em 0 0 0 /* avoid nudging input area */;
271 }
272 body.chat #chat-input-file-area > .file-selection-wrapper {
273 align-self: flex-start;
274 margin-right: 0.5em;
275 flex: 0 1 auto;
276
--- src/style.chat.css
+++ src/style.chat.css
@@ -202,11 +202,11 @@
202 display: flex;
203 flex-direction: column;
204 padding: 0.5em 0 0 0;
205 border-bottom: none;
206 border-top: 1px solid black;
207 margin: 0.5em 0 0 0;
208 position: initial /*sticky currently disabled due to scrolling-related issues*/;
209 bottom: 0;
210 }
211 body.chat:not(.chat-only-mode) #chat-input-area{
212 /* Safari user reports that 2em is necessary to keep the file selection
@@ -265,11 +265,11 @@
265 body.chat #chat-input-file-area {
266 display: flex;
267 flex-direction: row;
268 align-items: center;
269 flex-wrap: wrap;
270 margin: 0.25em 0 0 0 /* avoid nudging input area */;
271 }
272 body.chat #chat-input-file-area > .file-selection-wrapper {
273 align-self: flex-start;
274 margin-right: 0.5em;
275 flex: 0 1 auto;
276

Keyboard Shortcuts

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