feat(ui): unify layout spacing specification across all pages#75
Merged
Conversation
- Analyze current layout spacing inconsistencies across all pages - Define unified spacing specification (mobile: pt-4, desktop: pt-6) - Document sidebar width standardization (w-72 = 288px) - Create implementation roadmap with file change list Refs #74 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Create unified spacing constants and apply to all Layout/Page components: **New file:** - web/src/styles/layout.ts - LAYOUT_SPACING constants with unified values **Layout changes:** - GeneralLayout: Add standard top padding (pt-4/sm:pt-6) and max-width - AIChatLayout: Add docs explaining spacing deviation (full-screen design) - ScheduleLayout: Add docs explaining w-80 sidebar (calendar needs space) **Page simplifications:** - Inboxes: Remove redundant spacing (now from Layout) - Attachments: Remove redundant spacing (now from Layout) - Setting: Remove redundant spacing (now from Layout) - Review: Remove redundant spacing (now from Layout) **Specification:** - Mobile top padding: pt-4 (16px) - Desktop top padding: pt-6 (24px) - Sidebar width: w-72 (288px), Schedule w-80 (320px) exception - Max content width: max-w-[100rem] (1600px) Refs #74 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
eaeb107 to
075dbbb
Compare
hrygo
added a commit
that referenced
this pull request
Feb 5, 2026
* docs(research): add layout spacing unification research report - Analyze current layout spacing inconsistencies across all pages - Define unified spacing specification (mobile: pt-4, desktop: pt-6) - Document sidebar width standardization (w-72 = 288px) - Create implementation roadmap with file change list Refs #74 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat(ui): unify layout spacing specification across all pages Create unified spacing constants and apply to all Layout/Page components: **New file:** - web/src/styles/layout.ts - LAYOUT_SPACING constants with unified values **Layout changes:** - GeneralLayout: Add standard top padding (pt-4/sm:pt-6) and max-width - AIChatLayout: Add docs explaining spacing deviation (full-screen design) - ScheduleLayout: Add docs explaining w-80 sidebar (calendar needs space) **Page simplifications:** - Inboxes: Remove redundant spacing (now from Layout) - Attachments: Remove redundant spacing (now from Layout) - Setting: Remove redundant spacing (now from Layout) - Review: Remove redundant spacing (now from Layout) **Specification:** - Mobile top padding: pt-4 (16px) - Desktop top padding: pt-6 (24px) - Sidebar width: w-72 (288px), Schedule w-80 (320px) exception - Max content width: max-w-[100rem] (1600px) Refs #74 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: 黄飞虹 <aaronwong1989@gmail.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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.
概述
统一 PC 端与移动端各主模块页面的 Header 与主体内容间距规范,解决当前间距不统一问题。
变更内容
web/src/styles/layout.tsGeneralLayout.tsx添加标准顶部间距和最大宽度AIChatLayout.tsx添加间距偏差说明文档(全屏设计)ScheduleLayout.tsx添加侧边栏宽度说明文档(日历需要更宽空间)关联 Issue
Resolves #74
统一规范
pt-4(16px)pt-6(24px)pb-8(32px)pb-8(32px)px-4(16px)px-6(24px)max-w-[100rem]w-72(288px)测试计划
make check-all通过检查清单
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com