ScuttleBot
ui: use ✨ emoji for rich mode toggle
Commit
87903ff1ce0ee7b2717f633ea493cb866602c91b3b69fefca7321973174f03f0
Parent
840194566f53852…
1 file changed
+2
-2
+2
-2
| --- internal/api/ui/index.html | ||
| +++ internal/api/ui/index.html | ||
| @@ -510,11 +510,11 @@ | ||
| 510 | 510 | <span style="font-size:11px;color:#8b949e;margin-right:6px">chatting as</span> |
| 511 | 511 | <select id="chat-identity" style="width:140px;padding:3px 6px;font-size:12px" onchange="saveChatIdentity()"> |
| 512 | 512 | <option value="">— pick a user —</option> |
| 513 | 513 | </select> |
| 514 | 514 | <button class="sm" id="chat-layout-toggle" onclick="toggleChatLayout()" title="toggle compact/columnar" style="font-size:11px;padding:2px 6px">☰</button> |
| 515 | - <button class="sm" id="chat-rich-toggle" onclick="toggleRichMode()" title="toggle rich/text mode" style="font-size:11px;padding:2px 6px">{ }</button> | |
| 515 | + <button class="sm" id="chat-rich-toggle" onclick="toggleRichMode()" title="toggle rich/text mode" style="font-size:11px;padding:2px 6px">✨</button> | |
| 516 | 516 | <button class="sm" onclick="promptHighlightWords()" title="configure highlight keywords" style="font-size:11px;padding:2px 6px">✦</button> |
| 517 | 517 | <span class="stream-badge" id="chat-stream-status" style="margin-left:8px"></span> |
| 518 | 518 | </div> |
| 519 | 519 | <div class="chat-msgs" id="chat-msgs"> |
| 520 | 520 | <div class="empty" id="chat-placeholder">join a channel to start chatting</div> |
| @@ -1915,11 +1915,11 @@ | ||
| 1915 | 1915 | let metaBlock = ''; |
| 1916 | 1916 | if (msg.meta && msg.meta.type) { |
| 1917 | 1917 | const html = renderMeta(msg.meta); |
| 1918 | 1918 | if (html) { |
| 1919 | 1919 | const show = isRichMode(); |
| 1920 | - metaToggle = `<span class="msg-meta-toggle" style="${show ? '' : 'display:none'}" onclick="this.parentElement.nextElementSibling.classList.toggle('open');event.stopPropagation()">{ }</span>`; | |
| 1920 | + metaToggle = `<span class="msg-meta-toggle" style="${show ? '' : 'display:none'}" onclick="this.parentElement.nextElementSibling.classList.toggle('open');event.stopPropagation()">✨</span>`; | |
| 1921 | 1921 | metaBlock = `<div class="msg-meta">${html}</div>`; |
| 1922 | 1922 | } |
| 1923 | 1923 | } |
| 1924 | 1924 | |
| 1925 | 1925 | row.innerHTML = |
| 1926 | 1926 |
| --- internal/api/ui/index.html | |
| +++ internal/api/ui/index.html | |
| @@ -510,11 +510,11 @@ | |
| 510 | <span style="font-size:11px;color:#8b949e;margin-right:6px">chatting as</span> |
| 511 | <select id="chat-identity" style="width:140px;padding:3px 6px;font-size:12px" onchange="saveChatIdentity()"> |
| 512 | <option value="">— pick a user —</option> |
| 513 | </select> |
| 514 | <button class="sm" id="chat-layout-toggle" onclick="toggleChatLayout()" title="toggle compact/columnar" style="font-size:11px;padding:2px 6px">☰</button> |
| 515 | <button class="sm" id="chat-rich-toggle" onclick="toggleRichMode()" title="toggle rich/text mode" style="font-size:11px;padding:2px 6px">{ }</button> |
| 516 | <button class="sm" onclick="promptHighlightWords()" title="configure highlight keywords" style="font-size:11px;padding:2px 6px">✦</button> |
| 517 | <span class="stream-badge" id="chat-stream-status" style="margin-left:8px"></span> |
| 518 | </div> |
| 519 | <div class="chat-msgs" id="chat-msgs"> |
| 520 | <div class="empty" id="chat-placeholder">join a channel to start chatting</div> |
| @@ -1915,11 +1915,11 @@ | |
| 1915 | let metaBlock = ''; |
| 1916 | if (msg.meta && msg.meta.type) { |
| 1917 | const html = renderMeta(msg.meta); |
| 1918 | if (html) { |
| 1919 | const show = isRichMode(); |
| 1920 | metaToggle = `<span class="msg-meta-toggle" style="${show ? '' : 'display:none'}" onclick="this.parentElement.nextElementSibling.classList.toggle('open');event.stopPropagation()">{ }</span>`; |
| 1921 | metaBlock = `<div class="msg-meta">${html}</div>`; |
| 1922 | } |
| 1923 | } |
| 1924 | |
| 1925 | row.innerHTML = |
| 1926 |
| --- internal/api/ui/index.html | |
| +++ internal/api/ui/index.html | |
| @@ -510,11 +510,11 @@ | |
| 510 | <span style="font-size:11px;color:#8b949e;margin-right:6px">chatting as</span> |
| 511 | <select id="chat-identity" style="width:140px;padding:3px 6px;font-size:12px" onchange="saveChatIdentity()"> |
| 512 | <option value="">— pick a user —</option> |
| 513 | </select> |
| 514 | <button class="sm" id="chat-layout-toggle" onclick="toggleChatLayout()" title="toggle compact/columnar" style="font-size:11px;padding:2px 6px">☰</button> |
| 515 | <button class="sm" id="chat-rich-toggle" onclick="toggleRichMode()" title="toggle rich/text mode" style="font-size:11px;padding:2px 6px">✨</button> |
| 516 | <button class="sm" onclick="promptHighlightWords()" title="configure highlight keywords" style="font-size:11px;padding:2px 6px">✦</button> |
| 517 | <span class="stream-badge" id="chat-stream-status" style="margin-left:8px"></span> |
| 518 | </div> |
| 519 | <div class="chat-msgs" id="chat-msgs"> |
| 520 | <div class="empty" id="chat-placeholder">join a channel to start chatting</div> |
| @@ -1915,11 +1915,11 @@ | |
| 1915 | let metaBlock = ''; |
| 1916 | if (msg.meta && msg.meta.type) { |
| 1917 | const html = renderMeta(msg.meta); |
| 1918 | if (html) { |
| 1919 | const show = isRichMode(); |
| 1920 | metaToggle = `<span class="msg-meta-toggle" style="${show ? '' : 'display:none'}" onclick="this.parentElement.nextElementSibling.classList.toggle('open');event.stopPropagation()">✨</span>`; |
| 1921 | metaBlock = `<div class="msg-meta">${html}</div>`; |
| 1922 | } |
| 1923 | } |
| 1924 | |
| 1925 | row.innerHTML = |
| 1926 |