From c30d0c450f36c0845bdbf5681a6b2dcc37a15ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Tue, 10 Mar 2026 23:52:55 +0800 Subject: [PATCH] fix(channels): make guide steps collapsible + fix modal content overflow - channels.js: guide steps now use
for collapsible display - components.css: add .modal-content-body to scrollable flex rule - Fixes modals being too tall with buttons pushed off screen --- src/pages/channels.js | 8 ++++---- src/style/components.css | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/channels.js b/src/pages/channels.js index 81ec50f..79be738 100644 --- a/src/pages/channels.js +++ b/src/pages/channels.js @@ -240,13 +240,13 @@ async function openConfigDialog(pid, page, state) { }).join('') const guideHtml = reg.guide?.length ? ` -
-
接入步骤
-
    +
    + 接入步骤 (点击展开) +
      ${reg.guide.map(s => `
    1. ${s}
    2. `).join('')}
    ${reg.guideFooter || ''} -
+
` : '' const content = ` diff --git a/src/style/components.css b/src/style/components.css index 69da2eb..72aa36f 100644 --- a/src/style/components.css +++ b/src/style/components.css @@ -286,7 +286,8 @@ mark { flex-direction: column; box-shadow: var(--shadow-lg); } -.modal-body { +.modal-body, +.modal-content-body { flex: 1; overflow-y: auto; min-height: 0;