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.
What
折叠状态导航菜单优化
How
对应4个commits,分别:
点击弹出导航菜单项时关闭无关项,避免菜单层叠遮挡
一级菜单是 hover,二三级菜单需要点击,比较不协调。调整为移动切换子菜单。
优化菜单展开方向,比如,位于屏幕下沿的菜单项,很多时候向上展开即可避免溢出

选择展开方向后若仍溢出,充分利用剩余空间:向上展开时的底部空间;向下展开时的顶部空间

只要子菜单高度不超过屏幕高度都能完整展示,这应该能适应绝大多数场合了。否则仍会溢出,能力有限没解决。