Fossil SCM

Tweaked the /chat config options layout so that the entries start at the bottom of the view to put them in easier reach on tall screens, and moved the presumably most common options to the bottom so that they start out scrolled into view on smaller screens.

stephan 2021-09-21 19:45 trunk
Commit 3524f72e6b3b44884d08449322abd812169c098355a587ba18680e69d6e3ceda
2 files changed +8 -8 +1 -1
+8 -8
--- src/chat.js
+++ src/chat.js
@@ -1060,28 +1060,28 @@
10601060
persistentSetting: 'monospace-messages',
10611061
callback: function(){
10621062
document.body.classList.toggle('monospace-messages');
10631063
}
10641064
},{
1065
- label: "Chat-only mode",
1066
- boolValue: ()=>Chat.isChatOnlyMode(),
1067
- persistentSetting: 'chat-only-mode',
1065
+ label: "Images inline",
1066
+ boolValue: ()=>Chat.settings.getBool('images-inline'),
10681067
callback: function(){
1069
- Chat.toggleChatOnlyMode();
1068
+ const v = Chat.settings.toggle('images-inline');
1069
+ F.toast.message("Image mode set to "+(v ? "inline" : "hyperlink")+".");
10701070
}
10711071
},{
10721072
label: "Left-align my posts",
10731073
boolValue: ()=>!document.body.classList.contains('my-messages-right'),
10741074
callback: function f(){
10751075
document.body.classList.toggle('my-messages-right');
10761076
}
10771077
},{
1078
- label: "Images inline",
1079
- boolValue: ()=>Chat.settings.getBool('images-inline'),
1078
+ label: "Chat-only mode",
1079
+ boolValue: ()=>Chat.isChatOnlyMode(),
1080
+ persistentSetting: 'chat-only-mode',
10801081
callback: function(){
1081
- const v = Chat.settings.toggle('images-inline');
1082
- F.toast.message("Image mode set to "+(v ? "inline" : "hyperlink")+".");
1082
+ Chat.toggleChatOnlyMode();
10831083
}
10841084
}];
10851085
10861086
/** Set up selection list of notification sounds. */
10871087
if(1){
10881088
--- src/chat.js
+++ src/chat.js
@@ -1060,28 +1060,28 @@
1060 persistentSetting: 'monospace-messages',
1061 callback: function(){
1062 document.body.classList.toggle('monospace-messages');
1063 }
1064 },{
1065 label: "Chat-only mode",
1066 boolValue: ()=>Chat.isChatOnlyMode(),
1067 persistentSetting: 'chat-only-mode',
1068 callback: function(){
1069 Chat.toggleChatOnlyMode();
 
1070 }
1071 },{
1072 label: "Left-align my posts",
1073 boolValue: ()=>!document.body.classList.contains('my-messages-right'),
1074 callback: function f(){
1075 document.body.classList.toggle('my-messages-right');
1076 }
1077 },{
1078 label: "Images inline",
1079 boolValue: ()=>Chat.settings.getBool('images-inline'),
 
1080 callback: function(){
1081 const v = Chat.settings.toggle('images-inline');
1082 F.toast.message("Image mode set to "+(v ? "inline" : "hyperlink")+".");
1083 }
1084 }];
1085
1086 /** Set up selection list of notification sounds. */
1087 if(1){
1088
--- src/chat.js
+++ src/chat.js
@@ -1060,28 +1060,28 @@
1060 persistentSetting: 'monospace-messages',
1061 callback: function(){
1062 document.body.classList.toggle('monospace-messages');
1063 }
1064 },{
1065 label: "Images inline",
1066 boolValue: ()=>Chat.settings.getBool('images-inline'),
 
1067 callback: function(){
1068 const v = Chat.settings.toggle('images-inline');
1069 F.toast.message("Image mode set to "+(v ? "inline" : "hyperlink")+".");
1070 }
1071 },{
1072 label: "Left-align my posts",
1073 boolValue: ()=>!document.body.classList.contains('my-messages-right'),
1074 callback: function f(){
1075 document.body.classList.toggle('my-messages-right');
1076 }
1077 },{
1078 label: "Chat-only mode",
1079 boolValue: ()=>Chat.isChatOnlyMode(),
1080 persistentSetting: 'chat-only-mode',
1081 callback: function(){
1082 Chat.toggleChatOnlyMode();
 
1083 }
1084 }];
1085
1086 /** Set up selection list of notification sounds. */
1087 if(1){
1088
--- src/style.chat.css
+++ src/style.chat.css
@@ -320,11 +320,11 @@
320320
}
321321
body.chat #chat-config #chat-config-options {
322322
/* /chat config options go here */
323323
flex: 1 1 auto;
324324
display: flex;
325
- flex-direction: column;
325
+ flex-direction: column-reverse;
326326
overflow: auto;
327327
}
328328
body.chat #chat-config #chat-config-options .menu-entry {
329329
display: flex;
330330
align-items: center;
331331
--- src/style.chat.css
+++ src/style.chat.css
@@ -320,11 +320,11 @@
320 }
321 body.chat #chat-config #chat-config-options {
322 /* /chat config options go here */
323 flex: 1 1 auto;
324 display: flex;
325 flex-direction: column;
326 overflow: auto;
327 }
328 body.chat #chat-config #chat-config-options .menu-entry {
329 display: flex;
330 align-items: center;
331
--- src/style.chat.css
+++ src/style.chat.css
@@ -320,11 +320,11 @@
320 }
321 body.chat #chat-config #chat-config-options {
322 /* /chat config options go here */
323 flex: 1 1 auto;
324 display: flex;
325 flex-direction: column-reverse;
326 overflow: auto;
327 }
328 body.chat #chat-config #chat-config-options .menu-entry {
329 display: flex;
330 align-items: center;
331

Keyboard Shortcuts

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