ScuttleBot
ui: default rich mode to off — text-only by default
Commit
840194566f538523d15d128795136bfa8205b63eaba1aa7f6c3160aab4af1c86
Parent
3d42643e671f2cd…
1 file changed
+1
-1
+1
-1
| --- internal/api/ui/index.html | ||
| +++ internal/api/ui/index.html | ||
| @@ -2004,11 +2004,11 @@ | ||
| 2004 | 2004 | if (localStorage.getItem('sb_chat_columnar') === '1') { |
| 2005 | 2005 | document.getElementById('chat-msgs').classList.add('columnar'); |
| 2006 | 2006 | } |
| 2007 | 2007 | |
| 2008 | 2008 | // --- rich mode toggle --- |
| 2009 | -function isRichMode() { return localStorage.getItem('sb_rich_mode') !== '0'; } | |
| 2009 | +function isRichMode() { return localStorage.getItem('sb_rich_mode') === '1'; } | |
| 2010 | 2010 | function toggleRichMode() { |
| 2011 | 2011 | const on = !isRichMode(); |
| 2012 | 2012 | localStorage.setItem('sb_rich_mode', on ? '1' : '0'); |
| 2013 | 2013 | const btn = document.getElementById('chat-rich-toggle'); |
| 2014 | 2014 | btn.style.color = on ? '' : '#8b949e'; |
| 2015 | 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') !== '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 |