From 894f4841e307d82a631bed4b12b77d6e86304416 Mon Sep 17 00:00:00 2001 From: Tao Date: Sun, 1 Mar 2026 20:52:57 +1000 Subject: [PATCH] ui: centered version badge + update Telegram/Discord setup guides --- openclaw-manager.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/openclaw-manager.js b/openclaw-manager.js index 8e174e4..683c3e0 100644 --- a/openclaw-manager.js +++ b/openclaw-manager.js @@ -1699,6 +1699,10 @@ header { background:var(--surface); border-bottom:1px solid var(--border); paddi .lang-toggle { background:var(--border); border:none; color:var(--muted); border-radius:6px; padding:5px 10px; font-size:12px; cursor:pointer; } .lang-toggle:hover { background:#3a3f5c; color:var(--text); } +/* centered version badge */ +.top-version{ position:absolute; left:50%; transform:translateX(-50%); font-size:12px; font-weight:800; letter-spacing:.3px; color:var(--text); background:rgba(108,99,255,.18); border:1px solid rgba(108,99,255,.45); padding:4px 12px; border-radius:999px; box-shadow:0 6px 18px rgba(0,0,0,.25); } +.ver-old{ display:none; } + /* dropdown menu */ .menu-wrap { position:relative; } .menu-btn { background:var(--border); border:none; color:var(--text); border-radius:6px; padding:6px 12px; font-size:13px; cursor:pointer; display:flex; align-items:center; gap:6px; } @@ -1963,8 +1967,9 @@ const MAIN_HTML_BODY = String.raw`
- v-- - ocm v-- +
v--
+ v-- + ocm v--
⚠️ @@ -2475,7 +2480,8 @@ const I18N = { 'guide.title':'πŸ“– Setup Guide','guide.agent.s1':'Open Telegram, search for @BotFather', 'guide.agent.s2':'Send /newbot and follow prompts to name your Bot', 'guide.agent.s3':'Copy the Bot Token from BotFather and paste below', - 'guide.agent.s4':'Send /setprivacy β†’ select your Bot β†’ click Disable (allow Bot to read group messages)', + 'guide.agent.s4':'In BotFather: /mybots β†’ select your bot β†’ Bot Settings β†’ Allow Groups β†’ Turn on (allow the bot to join groups)', + 'guide.agent.s5':'Send /setprivacy β†’ select your Bot β†’ click Disable (allow Bot to read group messages)', 'guide.sub.s1':'在 BotFather 发送 /newbot εˆ›ε»Ίζ–° BotοΌŒθŽ·ε– Bot Token', 'guide.sub.s2':'在 BotFather 发送 /mybots β†’ 选择 Bot β†’ Bot Settings β†’ Group Privacy β†’ Turn off', 'guide.sub.s3':'在 Telegram εˆ›ε»Ίζ–°ηΎ€η»„οΌŒε°† Bot 加ε…₯ηΎ€η»„οΌˆδΈθ¦εŠ ε…Άδ»–δΊΊοΌ‰', @@ -2596,7 +2602,8 @@ const I18N = { 'guide.title':'πŸ“– Setup Guide','guide.agent.s1':'Open Telegram, search for @BotFather', 'guide.agent.s2':'Send /newbot and follow prompts to name your Bot', 'guide.agent.s3':'Copy the Bot Token from BotFather and paste below', - 'guide.agent.s4':'Send /setprivacy β†’ select your Bot β†’ click Disable (allow Bot to read group messages)', + 'guide.agent.s4':'In BotFather: /mybots β†’ select your bot β†’ Bot Settings β†’ Allow Groups β†’ Turn on (allow the bot to join groups)', + 'guide.agent.s5':'Send /setprivacy β†’ select your Bot β†’ click Disable (allow Bot to read group messages)', 'guide.sub.s1':'Send /newbot to BotFather to create a new Bot and get the Bot Token', 'guide.sub.s2':'Send /mybots to BotFather β†’ select your Bot β†’ Bot Settings β†’ Group Privacy β†’ Turn off', 'guide.sub.s3':'Create a new Telegram group, add the Bot to the group (do NOT add anyone else)', @@ -2912,6 +2919,7 @@ function buildAddAgentForm() { '
  • ' + t('guide.agent.s2') + '
  • ' + '
  • ' + t('guide.agent.s3') + '
  • ' + '
  • ' + t('guide.agent.s4') + '
  • ' + + '
  • ' + t('guide.agent.s5') + '
  • ' + '' + '