ScuttleBot

ui: default rich mode to off — text-only by default

lmata 2026-04-04 04:57 trunk
Commit 840194566f538523d15d128795136bfa8205b63eaba1aa7f6c3160aab4af1c86
1 file changed +1 -1
--- internal/api/ui/index.html
+++ internal/api/ui/index.html
@@ -2004,11 +2004,11 @@
20042004
if (localStorage.getItem('sb_chat_columnar') === '1') {
20052005
document.getElementById('chat-msgs').classList.add('columnar');
20062006
}
20072007
20082008
// --- rich mode toggle ---
2009
-function isRichMode() { return localStorage.getItem('sb_rich_mode') !== '0'; }
2009
+function isRichMode() { return localStorage.getItem('sb_rich_mode') === '1'; }
20102010
function toggleRichMode() {
20112011
const on = !isRichMode();
20122012
localStorage.setItem('sb_rich_mode', on ? '1' : '0');
20132013
const btn = document.getElementById('chat-rich-toggle');
20142014
btn.style.color = on ? '' : '#8b949e';
20152015
--- internal/api/ui/index.html
+++ internal/api/ui/index.html
@@ -2004,11 +2004,11 @@
2004 if (localStorage.getItem('sb_chat_columnar') === '1') {
2005 document.getElementById('chat-msgs').classList.add('columnar');
2006 }
2007
2008 // --- rich mode toggle ---
2009 function isRichMode() { return localStorage.getItem('sb_rich_mode') !== '0'; }
2010 function toggleRichMode() {
2011 const on = !isRichMode();
2012 localStorage.setItem('sb_rich_mode', on ? '1' : '0');
2013 const btn = document.getElementById('chat-rich-toggle');
2014 btn.style.color = on ? '' : '#8b949e';
2015
--- internal/api/ui/index.html
+++ internal/api/ui/index.html
@@ -2004,11 +2004,11 @@
2004 if (localStorage.getItem('sb_chat_columnar') === '1') {
2005 document.getElementById('chat-msgs').classList.add('columnar');
2006 }
2007
2008 // --- rich mode toggle ---
2009 function isRichMode() { return localStorage.getItem('sb_rich_mode') === '1'; }
2010 function toggleRichMode() {
2011 const on = !isRichMode();
2012 localStorage.setItem('sb_rich_mode', on ? '1' : '0');
2013 const btn = document.getElementById('chat-rich-toggle');
2014 btn.style.color = on ? '' : '#8b949e';
2015

Keyboard Shortcuts

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