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

代码块、嵌入块支持固定高度 #11055

Open
TCOTC opened this issue Apr 16, 2024 · 0 comments
Open

代码块、嵌入块支持固定高度 #11055

TCOTC opened this issue Apr 16, 2024 · 0 comments

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Apr 16, 2024

In what scenarios do you need this feature?

一个想法:思源关于比较长的块,是否可以默认折叠,只显示前几行? - 链滴

有时候代码太长,不折叠的话要翻半天,折叠的话有什么都看不到了,希望有个功能像「固定表头」那样让块的高度显示为页面的一半。

还有嵌入块也是。

单纯用 CSS 做不了: #10769

Describe the optimal solution

比如固定表头可以让表格的高度显示为页面的一半

.protyle-wysiwyg [data-node-id].table[custom-pinthead=true] table {
    max-height: 50vh;
}

Describe the candidate solution

No response

Other information

No response

@TCOTC TCOTC changed the title 代码块、嵌入块增加一个功能 代码块、嵌入块支持固定高度 Apr 26, 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

1 participant