From 809c8de2ffbac667fc23531bbf10b166d942e6aa Mon Sep 17 00:00:00 2001 From: Wx-2025 <351320169@qq.com> Date: Wed, 31 Dec 2025 15:14:45 +0800 Subject: [PATCH] Update ui-bindings.js --- core/auto-char-card/ui-bindings.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/core/auto-char-card/ui-bindings.js b/core/auto-char-card/ui-bindings.js index 8ac08f5..15bc05e 100644 --- a/core/auto-char-card/ui-bindings.js +++ b/core/auto-char-card/ui-bindings.js @@ -402,6 +402,24 @@ function bindEvents() { toastr.error(`连接失败: ${result.error || '未知错误'}`); } }); + + // Mobile Navigation Logic + $('.acc-nav-btn').on('click', function() { + const targetClass = $(this).data('target'); + + // Update buttons + $('.acc-nav-btn').removeClass('active'); + $(this).addClass('active'); + + // Update panels + $('.acc-column').removeClass('mobile-active'); + $(`.${targetClass}`).addClass('mobile-active'); + }); + + // Initialize mobile view (default to center panel) + if (window.innerWidth <= 768) { + $('.acc-center-panel').addClass('mobile-active'); + } } async function handleSendMessage() {