Repository navigation
fix(system): keep sidebar navigation scrollable on short viewports - #1489
Merged
Merged
Conversation
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.
问题
窗口高度不足时,系统管理左侧导航仍按普通文档流撑开,菜单区域没有独立滚动。
.bottom使用绝对定位固定在底部,因此“返回工作空间”按钮和账号区域会覆盖菜单项,超出可视范围的菜单也无法访问。修改
调整
LayoutDsl.vue的左侧栏布局:.left-side改为纵向 flex 容器,并设置min-height: 0.el-menu-demo占用剩余高度,设置min-height: 0和overflow-y: auto.bottom改为 normal flow,预留固定高度,不再绝对定位覆盖菜单.bottom的宽度验证
scrollHeight分别为 458/451,clientHeight为 314/234,菜单区域内可滚动npm run build通过