Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiki页面左侧导航组件点击跳转后不能保留相对位置 #305

Open
PingPeacekeeper opened this issue Jul 30, 2023 · 3 comments
Open

Comments

@PingPeacekeeper
Copy link

wiki页面的左侧列表数量超过窗口显示的限制时,点击靠后的标签跳转后会导致该导航组件在新页面重新回到顶端,即选中的标签没有处于界面中。

如在较小的窗口中打开example,左侧选中的标签会出现在合适的位置。

我不是特别擅长前端,对比了很久的前端样式但是并没有发现原因,希望有人能指点下大概是什么问题,毕竟长列表wiki还是很关键的。

@PingPeacekeeper
Copy link
Author

研究了下可以通过给导航标签加一个默认default锚点来跳转,但是默认跳转到顶部,不知道怎么对齐中间。

@Thot-null
Copy link

你好问一下,你配置的这个文件生效了吗
image

@xaoxuu
Copy link
Owner

xaoxuu commented Apr 3, 2024

现在目录可以拆分到右边,情况会好点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants