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

文章目录高度太小了,可以自定义 subSidebar 的高度吗? #354

Closed
shirayner opened this issue May 3, 2021 · 2 comments
Closed

Comments

@shirayner
Copy link

Feature request

如下图,只能显示部分目录,而我想目录的高度变大一点
image
最好类似Typora这种,可以一下子显示整篇文章的目录
image

如果能让用户自定义 subSidebar 高度,就会很棒,请问有什么方式可以实现这个需求吗?

@NatureK88
Copy link

有两个方法:
一是在你生成的网页上f12,找到相关元素的css,在此是sidebar-links之类,然后按照官网教程自定义css样式。
二是找到SidebarLinks.vue文件,直接在这个文件中找到相关设置修改,在这个文件同级目录下还有诸多其他设置的.vue文档。

@recoluan
Copy link
Member

Feature request

如下图,只能显示部分目录,而我想目录的高度变大一点 image 最好类似Typora这种,可以一下子显示整篇文章的目录 image

如果能让用户自定义 subSidebar 高度,就会很棒,请问有什么方式可以实现这个需求吗?

可以通过自定义样式去实现:https://vuepress.vuejs.org/zh/config/#index-styl

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