feat(ui): 移动端竖屏 UI 适配#659
Merged
Merged
Conversation
Replace fixed sidebar on narrow/Android with top bar, bottom tabs, and more sheet; adapt Overview, History, Vocab, and Settings for portrait; add android-ui-verify.ps1. Co-authored-by: Cursor <cursoragent@cursor.com>
…ndows Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
摘要
Fixes #(无关联 Issue)。
为 Android 竖屏及窄屏(
innerWidth < 720)补充移动端 Shell:底部 Tab +「更多」抽屉 + 顶栏设置,主内容全宽展示;桌面宽屏侧栏布局保持不变。修复 / 新增 / 改进
FloatingShell在 mobile 布局下隐藏 188px 侧栏,改为顶栏 + 底栏(概览 / 历史 / 风格 / 更多)+MobileMoreSheet(词汇表 / 翻译 / 划词追问 / 设置)WindowChrome使用不透明 surface,禁用多层backdrop-filter;Tab 切换改为 opacity 动画(无 blur)Overview单列 Provider + 2×2 指标卡;History列表/详情两态 + 返回;Vocab纠错规则单列;SettingsModal竖屏全屏 + 横向 Tabnav.more、history.backToListopenless-all/app/scripts/android-ui-verify.ps1(gh 触发 CI debug APK → adb 安装 / logcat / 截图)兼容
innerWidth >= 720且非 Android 时桌面 Shell 与现beta一致;Android CI workflow 无变更测试计划
npm run build(openless-all/app)27470613716;真机adb install+ 竖屏截图验收通过PR Type
Enhancement, Tests
Description
Add mobile bottom tab navigation with top bar
Implement responsive single-column layouts for narrow screens
Introduce 'More' sheet for secondary navigation tabs
Include Android verification script for UI testing
Diagram Walkthrough
flowchart LR Desktop["Desktop Layout"] --> Sidebar["188px sidebar + main content"] Mobile["Mobile Layout"] --> TopBar["Top bar with title and settings button"] Mobile --> BottomNav["Bottom nav: Overview / History / Style / More"] Mobile --> Main["Full-width main content"] BottomNav --> MoreSheet["More sheet: Vocab / Translation / Ask"]File Walkthrough
14 files
Add mobile shell with bottom nav and top barAdd 'more' icon for mobile navigationCreate mobile more sheet componentAdapt settings modal for mobile layoutUse solid surface background for AndroidAdd i18n keys for mobile navigationAdd i18n keys for Japanese mobile navigationAdd i18n keys for Korean mobile navigationAdd i18n keys for Chinese mobile navigationAdd i18n keys for Traditional Chinese mobile navigationMake history view responsive for mobileMake overview layout responsive for mobileMake vocab page single-column on mobileAdjust page header for mobile spacing1 files
Add Android UI verification PowerShell script