diff --git a/frontend/src/components/ConnectionModal.tsx b/frontend/src/components/ConnectionModal.tsx index a89d7f4..3f362a8 100644 --- a/frontend/src/components/ConnectionModal.tsx +++ b/frontend/src/components/ConnectionModal.tsx @@ -11,6 +11,11 @@ const { Text } = Typography; const MAX_URI_LENGTH = 4096; const MAX_URI_HOSTS = 32; const MAX_TIMEOUT_SECONDS = 3600; +const STEP1_MODAL_WIDTH = 760; +const STEP2_MODAL_WIDTH = 680; +const STEP1_MODAL_MIN_BODY_HEIGHT = 460; +const STEP1_SIDEBAR_DIVIDER_DARK = 'rgba(255, 255, 255, 0.16)'; +const STEP1_SIDEBAR_DIVIDER_LIGHT = 'rgba(0, 0, 0, 0.08)'; const getDefaultPortByType = (type: string) => { switch (type) { @@ -99,6 +104,8 @@ const ConnectionModal: React.FC<{ return `rgba(${r}, ${g}, ${b}, ${Math.max(effectiveOpacity, 0.82)})`; }; + const step1SidebarDividerColor = darkMode ? STEP1_SIDEBAR_DIVIDER_DARK : STEP1_SIDEBAR_DIVIDER_LIGHT; + const tunnelSectionStyle: React.CSSProperties = { padding: '12px', background: getSectionBg('#2a2a2a'), @@ -1206,7 +1213,7 @@ const ConnectionModal: React.FC<{ )}
{/* 左侧分类导航 */} -
+
{dbTypeGroups.map((group, idx) => (