feat(console-ui): responsive mobile & tablet layout (#5) - #7
Conversation
Issue #5 — progressive responsive layout from 320px phones to desktop. Responsive base: - useViewportEnvironment hook: matchMedia subscriptions for phone (<640) / tablet (640-1023) / desktop (>=1024), plus pointer:coarse, hover:none, orientation and visualViewport - index.html viewport meta with viewport-fit=cover Mobile shell (P0): - AppWindow: compact single-app fullscreen mode with show-desktop, hides meaningless minimize/maximize, 44px touch targets - Dock: bottom navigation with horizontal scroll and explicit touch actions (no hover/right-key dependency) when touchEnvironment - StatusBar compact top bar; TabBar horizontal scroll with active scrollIntoView; Toast avoids Dock and safe-area - 16px mobile inputs (no iOS zoom); reduced-motion/transparency kept P1 pages: card / collapse / inner-scroll strategies so no page-level horizontal scroll (Dashboard, Monitoring, Files, Processes, DiskManager, Models, Links, NetworkConnections, Ports, AppStore, AlertCenter, Settings, VirtualMachines, Supervisor, AIActivity, Hardware). Draft: depends on #4's overlay/shortcut seam; the full Playwright multi-viewport suite runs after rebasing onto #4's S0 test base. Closes #5 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
StatusBar 移动/平板溢出修复已推送( 根因:右侧 cloud/time/user 固定宽度且 修复:在 ≤1023px 隐藏次要 CPU/GPU/内存与完整时间/同步文本;保留设备标识、告警、在线状态、用户入口;≤639px 将在线状态折叠为图标,并保证告警/用户等触控目标至少 44px。 真实 Chromium 验证:320/320、360/360、390/390、768/768、1024/1024、1440/1440(scrollWidth/clientWidth),StatusBar 自身宽度同步相等;手机端可见交互项高度均 44px。 |
|
Cloud Link LED 已按确认方案更新。\n\n| Before | After |\n| --- | --- |\n| 手机仅折叠为云朵图标,设备连接语义偏弱 | 手机/平板显示 8px 核心 + 1px 外环的硬件 Link LED,桌面显示 LED + 完整状态文字 |\n| 在线/离线二态且颜色散落在组件内 | 统一四态:在线 |
概述
实现 Issue #5:把 Console UI 从 320px 手机到桌面做渐进响应式适配。
响应式基础
useViewportEnvironment:集中订阅 matchMedia,断点 phone(<640)/tablet(640-1023)/desktop(≥1024),加pointer:coarse、hover:none、orientation、visualViewport。index.htmlviewport +viewport-fit=cover。P0 移动壳
compactWindow),onShowDesktop,隐藏无意义的最小化/最大化,44px 触控目标。touchEnvironment时用显式触控动作替代 hover/右键。scrollIntoView;Toast 避让 Dock 与 safe-area。P1 高频管理页(16 个)
卡片化 / 列折叠 / 局部横滚策略,消除整页横向滚动。
门禁(基于 origin/main
5ca8107)npm run buildnpm run lint待办(转 Ready 前)
App.jsx/StatusBar.jsx/AppMgmtDrawer.jsx/AuthModal.jsx/AuditLog.jsx共享 shell 集成pkg/console/distCloses #5
🤖 Generated with Claude Code