fix(frontend): repair mobile admin layout regressions - #816
Merged
Conversation
- 侧栏 Sheet 固定高度并独立滚动,底部账号操作常显 - 设置页标签限制宽度,窄屏可横向滑动 - 设置 sticky 顶栏对齐移动导航,遮罩仅桌面生效
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.
Summary
Root cause
Missing bottom sidebar actions
The mobile
SheetContentused flex column layout without a viewport height cap. Long navigation content expanded past the screen and pushed the account/settings footer out of view.Settings tabs overflow
Settings tabs were horizontal with every trigger set to
w-full, so the tab list grew wider than the viewport and was not clipped or scrollable.Invisible but clickable top controls
The settings sticky header used a full-viewport
beforebackground mask andtop-8, which covered the mobile shell header visually while leaving hit targets active. The shell header itself was also not sticky.Changes
app-shell.tsx: pin the mobile sheet toh-dvh, scroll only the nav region, keep account controlsshrink-0, and make the mobile shell header stickysettings-page.tsx: limit tab list width with horizontal overflow scrolling; keep desktop vertical sticky tabs; move the scroll mask tolg:only and align sticky offset with the mobile headerImpact
Validation
pnpm run buildpnpm exec tsc -p tsconfig.app.json --noEmit