Repository navigation
mobile: 宽屏下搜索首页居中显示 - #383
Francisewais wants to merge 1 commit into
Conversation
bbplayer-app#374 limited the search home's search bar and content to MAX_WIDTH.search but did not center them, unlike the search results and the player. On a tablet in landscape they sat on the left with the right half of the screen empty. The title, search bar and content now form one centered column. Phones are narrower than the column, so they look the same as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep GitHub App |
|
No actionable comments were generated in the recent review. Walkthrough搜索页的标题、搜索框和内容区域新增全宽及居中对齐样式。三个区域均设置 Changes搜索页布局
Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|



问题
#374 给搜索首页的搜索框和内容区设了
maxWidth: MAX_WIDTH.search(720),但没有居中。同一个 PR 里,搜索结果页和播放页限制宽度时都同时写了width: '100%'和alignSelf: 'center',搜索首页漏了这两项。所以在平板横屏时,标题、搜索框和最近搜索都挤在左边,右边空着一大半。改动
标题、搜索框和内容区都用和搜索结果页一样的写法,在宽屏上作为一列居中。只改了
apps/mobile/src/app/(tabs)/index.tsx里的样式。手机屏幕比 720 窄,显示和原来一样。
测试
pnpm type-check、pnpm lint通过。🤖 Generated with Claude Code
Summary by CodeRabbit