完全展开目录

Is there any way to make the entire TOC show up at once instead of dynamically hiding most of it? A full post outline can be useful for finding a section without knowing and clicking through its ancestry, or so you can just read all the section names as a way to skim a post.

4 个赞

I would second this feature request. I can see that this might result in long TOCs, but at least one could add an “expand all” button or Link?

3 个赞

I am wondering how the TOC plugin is intended to function as I am finding its behaviour sort of odd. I have attached an animated gif below showing my observed behaviour. Is this intentional?

tocissue

My personal thought/preference is that the TOC is just fully expanded from the start.

Thanks in advance!

4 个赞

我也很希望“全部展开”选项能尽快开发出来。

1 个赞

虽然我喜欢动态展开的目录,但我同意为更长的维基提供一个完全展开的目录选项会很棒!

5 个赞

这里有一个“脏”技巧:

.d-toc-sublevel {
	max-height: 500em !important;
    overflow: visible !important;
    opacity: 1 !important;
}

将其复制并粘贴到你的主题的自定义 CSS 中,放在 https://www.your-domain.com/admin/customize/themes/ 的某个位置。

7 个赞

完美运行 :fist_left:

2 个赞

这将是一个很好的补充,可以避免依赖(更多的)CSS。

1 个赞