This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: add supports for storing navbar position (#865)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 支持保存侧板滚动条位置,防止切换路由时侧边栏的抖动。 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#3240 #### Screenshots: before: ![2023-02-20 12 12 05](https://user-images.githubusercontent.com/21301288/220007834-12658cf2-e8a8-42ea-93b1-2c58419edbac.gif) after: ![2023-02-20 12 11 19](https://user-images.githubusercontent.com/21301288/220007742-58471b69-cfd1-4576-babd-5516d2c0de1d.gif) #### Special notes for your reviewer: 测试方式: 1. 调整浏览器高度,让侧边栏菜单区域出现滚动条。 2. 测试点击底部的任意菜单项,跳转页面之后,观察滚动条是否与之前的位置保持一致。 #### Does this PR introduce a user-facing change? ```release-note Console 端侧边栏滚动条支持缓存位置,防止切换路由时重置滚动条位置。 ```
- Loading branch information
d396337
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ui – ./
ui-git-main-halo-dev.vercel.app
halo-admin-ui.vercel.app
ui-halo-dev.vercel.app