Fossil SCM

Disabled the top-down/bottom-up chat toggle, per chat discussion. Removed explicit setting of div.content margins, in chat,except in chat-only mode, so that we honor skin-level margin settings (resolves layout breakage in Xekri skin).

stephan 2020-12-27 00:22 chat-safari-breaks-here
Commit 22b0faad3a7c7eb4bede4d817711a8eea1ec2e009fccbe46efce765f34fcbde5
2 files changed +2 -2 +1 -1
+2 -2
--- src/chat.js
+++ src/chat.js
@@ -654,20 +654,20 @@
654654
label: "Left-align my posts",
655655
boolValue: ()=>!document.body.classList.contains('my-messages-right'),
656656
callback: function f(){
657657
document.body.classList.toggle('my-messages-right');
658658
}
659
- },{
659
+ }/**,{
660660
label: "Bottom-up chat",
661661
boolValue: ()=>document.body.classList.contains('chat-bottom-up'),
662662
callback: function(){
663663
document.body.classList.toggle('chat-bottom-up');
664664
Chat.settings.set('bottom-up',
665665
document.body.classList.contains('chat-bottom-up'));
666666
setTimeout(()=>Chat.e.inputWrapper.scrollIntoView(), 0);
667667
}
668
- },{
668
+ }*/,{
669669
label: "Images inline",
670670
boolValue: ()=>Chat.settings.getBool('images-inline'),
671671
callback: function(){
672672
const v = Chat.settings.getBool('images-inline',true);
673673
Chat.settings.set('images-inline', !v);
674674
--- src/chat.js
+++ src/chat.js
@@ -654,20 +654,20 @@
654 label: "Left-align my posts",
655 boolValue: ()=>!document.body.classList.contains('my-messages-right'),
656 callback: function f(){
657 document.body.classList.toggle('my-messages-right');
658 }
659 },{
660 label: "Bottom-up chat",
661 boolValue: ()=>document.body.classList.contains('chat-bottom-up'),
662 callback: function(){
663 document.body.classList.toggle('chat-bottom-up');
664 Chat.settings.set('bottom-up',
665 document.body.classList.contains('chat-bottom-up'));
666 setTimeout(()=>Chat.e.inputWrapper.scrollIntoView(), 0);
667 }
668 },{
669 label: "Images inline",
670 boolValue: ()=>Chat.settings.getBool('images-inline'),
671 callback: function(){
672 const v = Chat.settings.getBool('images-inline',true);
673 Chat.settings.set('images-inline', !v);
674
--- src/chat.js
+++ src/chat.js
@@ -654,20 +654,20 @@
654 label: "Left-align my posts",
655 boolValue: ()=>!document.body.classList.contains('my-messages-right'),
656 callback: function f(){
657 document.body.classList.toggle('my-messages-right');
658 }
659 }/**,{
660 label: "Bottom-up chat",
661 boolValue: ()=>document.body.classList.contains('chat-bottom-up'),
662 callback: function(){
663 document.body.classList.toggle('chat-bottom-up');
664 Chat.settings.set('bottom-up',
665 document.body.classList.contains('chat-bottom-up'));
666 setTimeout(()=>Chat.e.inputWrapper.scrollIntoView(), 0);
667 }
668 }*/,{
669 label: "Images inline",
670 boolValue: ()=>Chat.settings.getBool('images-inline'),
671 callback: function(){
672 const v = Chat.settings.getBool('images-inline',true);
673 Chat.settings.set('images-inline', !v);
674
+1 -1
--- src/default.css
+++ src/default.css
@@ -1652,11 +1652,10 @@
16521652
}
16531653
body.chat.chat-only-mode #chat-message-wrapper {
16541654
}
16551655
16561656
body.chat div.content {
1657
- margin: 0;
16581657
padding: 0;
16591658
position: relative;
16601659
display: flex;
16611660
flex-direction: column;
16621661
align-items: stretch;
@@ -1665,10 +1664,11 @@
16651664
body.chat.chat-bottom-up div.content {
16661665
flex-direction: column-reverse;
16671666
}
16681667
body.chat.chat-only-mode div.content {
16691668
max-height: 95vh/*larger than approx. this is too big for Firefox on Android*/;
1669
+ margin: 0;
16701670
}
16711671
/* Wrapper for /chat user input controls */
16721672
body.chat #chat-input-area {
16731673
display: flex;
16741674
flex-direction: column;
16751675
--- src/default.css
+++ src/default.css
@@ -1652,11 +1652,10 @@
1652 }
1653 body.chat.chat-only-mode #chat-message-wrapper {
1654 }
1655
1656 body.chat div.content {
1657 margin: 0;
1658 padding: 0;
1659 position: relative;
1660 display: flex;
1661 flex-direction: column;
1662 align-items: stretch;
@@ -1665,10 +1664,11 @@
1665 body.chat.chat-bottom-up div.content {
1666 flex-direction: column-reverse;
1667 }
1668 body.chat.chat-only-mode div.content {
1669 max-height: 95vh/*larger than approx. this is too big for Firefox on Android*/;
 
1670 }
1671 /* Wrapper for /chat user input controls */
1672 body.chat #chat-input-area {
1673 display: flex;
1674 flex-direction: column;
1675
--- src/default.css
+++ src/default.css
@@ -1652,11 +1652,10 @@
1652 }
1653 body.chat.chat-only-mode #chat-message-wrapper {
1654 }
1655
1656 body.chat div.content {
 
1657 padding: 0;
1658 position: relative;
1659 display: flex;
1660 flex-direction: column;
1661 align-items: stretch;
@@ -1665,10 +1664,11 @@
1664 body.chat.chat-bottom-up div.content {
1665 flex-direction: column-reverse;
1666 }
1667 body.chat.chat-only-mode div.content {
1668 max-height: 95vh/*larger than approx. this is too big for Firefox on Android*/;
1669 margin: 0;
1670 }
1671 /* Wrapper for /chat user input controls */
1672 body.chat #chat-input-area {
1673 display: flex;
1674 flex-direction: column;
1675

Keyboard Shortcuts

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