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

PageTOC插件目录加载问题 #1

Closed
Zhaoyang-Song opened this issue Jul 15, 2022 · 4 comments
Closed

PageTOC插件目录加载问题 #1

Zhaoyang-Song opened this issue Jul 15, 2022 · 4 comments

Comments

@Zhaoyang-Song
Copy link

TiddlyWiki在使用PageTOC插件生成目录时,如果目录过长,无法滑动拉至更往后的内容。

举个例子,假设h1有100个,可能屏幕上只显示前20个,无法通过上下滑动或者其他办法得到目录后面的内容,也就无法完成查看和跳转。

此加载问题的文件类型是Markdown,非TW原生格式。(并未试过原生格式是否存在该问题)

@fcnaud
Copy link
Contributor

fcnaud commented Sep 2, 2022

我也遇到了类似的问题,你修改下样式文件就可以了,给这个div加个高度。

  1. 打开插件的样式文件

image

  1. 找到这里,给这个class添加如下内容

image

	height: 300px;
	overflow: auto;
  1. 最终结果,其他的地方也类似

image

@Zhaoyang-Song
Copy link
Author

Zhaoyang-Song commented Sep 2, 2022 via email

@Gk0Wk
Copy link
Owner

Gk0Wk commented Nov 11, 2022

TW 原生插件写起来还是太麻烦了,后面计划换成用 React 写,所以这个暂时就不修了。

@Gk0Wk
Copy link
Owner

Gk0Wk commented Nov 11, 2022

不对呀,之前似乎已经修复了哈哈:

.gk0wk-tiddlertoc-viewbuttonpopup {
  border-radius: 3px;
  background: <<colour page-background>>;
  width: min(90vw, 300px);
  <<box-shadow "#00000070 0 2px 6px">>
  filter: contrast(90%);
  padding: 0;
  overflow-y: auto;
  max-height: 80vh;
}

@Gk0Wk Gk0Wk closed this as completed Nov 11, 2022
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