Fossil SCM

chat: home/end navigation buttons now unconditionally start toggled off, as they're rarely useful.

stephan 2021-01-06 13:00 trunk
Commit b19081f3a396e00b03d47ca03e7931f12e07cf5146b2d172f7ac4f4f33aab3ce
2 files changed +2 -2 -1
+2 -2
--- src/chat.c
+++ src/chat.c
@@ -163,12 +163,12 @@
163163
@ placeholder="Type message here." autocomplete="off">
164164
@ <textarea rows="8" id="chat-input-multi" \
165165
@ placeholder="Type message here. Ctrl-Enter sends it." \
166166
@ class="hidden"></textarea>
167167
@ <input type="submit" value="Send" id="chat-message-submit">
168
- @ <button id="chat-scroll-top">&uarr;</button>
169
- @ <button id="chat-scroll-bottom">&darr;</button>
168
+ @ <button id="chat-scroll-top" class="hidden">&uarr;</button>
169
+ @ <button id="chat-scroll-bottom" class="hidden">&darr;</button>
170170
@ <span id="chat-settings-button" class="settings-icon" \
171171
@ aria-label="Settings..." aria-haspopup="true" ></span>
172172
@ </div>
173173
@ <div id='chat-input-file-area'>
174174
@ <div class='file-selection-wrapper'>
175175
--- src/chat.c
+++ src/chat.c
@@ -163,12 +163,12 @@
163 @ placeholder="Type message here." autocomplete="off">
164 @ <textarea rows="8" id="chat-input-multi" \
165 @ placeholder="Type message here. Ctrl-Enter sends it." \
166 @ class="hidden"></textarea>
167 @ <input type="submit" value="Send" id="chat-message-submit">
168 @ <button id="chat-scroll-top">&uarr;</button>
169 @ <button id="chat-scroll-bottom">&darr;</button>
170 @ <span id="chat-settings-button" class="settings-icon" \
171 @ aria-label="Settings..." aria-haspopup="true" ></span>
172 @ </div>
173 @ <div id='chat-input-file-area'>
174 @ <div class='file-selection-wrapper'>
175
--- src/chat.c
+++ src/chat.c
@@ -163,12 +163,12 @@
163 @ placeholder="Type message here." autocomplete="off">
164 @ <textarea rows="8" id="chat-input-multi" \
165 @ placeholder="Type message here. Ctrl-Enter sends it." \
166 @ class="hidden"></textarea>
167 @ <input type="submit" value="Send" id="chat-message-submit">
168 @ <button id="chat-scroll-top" class="hidden">&uarr;</button>
169 @ <button id="chat-scroll-bottom" class="hidden">&darr;</button>
170 @ <span id="chat-settings-button" class="settings-icon" \
171 @ aria-label="Settings..." aria-haspopup="true" ></span>
172 @ </div>
173 @ <div id='chat-input-file-area'>
174 @ <div class='file-selection-wrapper'>
175
--- src/chat.js
+++ src/chat.js
@@ -410,11 +410,10 @@
410410
for mobile chat apps but can be difficult to read in wide
411411
windows (desktop/tablet landscape mode), so we default to a
412412
layout based on the apparently "orientation" of the window:
413413
tall vs wide. Can be toggled via settings popup. */
414414
document.body.classList.add('my-messages-right');
415
- cs.toggleNavButtons(false);
416415
}
417416
if(cs.settings.getBool('monospace-messages',false)){
418417
document.body.classList.add('monospace-messages');
419418
}
420419
cs.inputMultilineMode(cs.settings.getBool('edit-multiline',false));
421420
--- src/chat.js
+++ src/chat.js
@@ -410,11 +410,10 @@
410 for mobile chat apps but can be difficult to read in wide
411 windows (desktop/tablet landscape mode), so we default to a
412 layout based on the apparently "orientation" of the window:
413 tall vs wide. Can be toggled via settings popup. */
414 document.body.classList.add('my-messages-right');
415 cs.toggleNavButtons(false);
416 }
417 if(cs.settings.getBool('monospace-messages',false)){
418 document.body.classList.add('monospace-messages');
419 }
420 cs.inputMultilineMode(cs.settings.getBool('edit-multiline',false));
421
--- src/chat.js
+++ src/chat.js
@@ -410,11 +410,10 @@
410 for mobile chat apps but can be difficult to read in wide
411 windows (desktop/tablet landscape mode), so we default to a
412 layout based on the apparently "orientation" of the window:
413 tall vs wide. Can be toggled via settings popup. */
414 document.body.classList.add('my-messages-right');
 
415 }
416 if(cs.settings.getBool('monospace-messages',false)){
417 document.body.classList.add('monospace-messages');
418 }
419 cs.inputMultilineMode(cs.settings.getBool('edit-multiline',false));
420

Keyboard Shortcuts

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