Skip to content

Add data-close-counter attribute#14962

Closed
TCOTC wants to merge 1 commit intosiyuan-note:devfrom
TCOTC:fix/13887-Point-1
Closed

Add data-close-counter attribute#14962
TCOTC wants to merge 1 commit intosiyuan-note:devfrom
TCOTC:fix/13887-Point-1

Conversation

@TCOTC
Copy link
Copy Markdown
Contributor

@TCOTC TCOTC commented Jun 3, 2025

fix #13887 Point 1

添加一个属性,使得已关闭的笔记本数量为 0 时用户可以通过添加 CSS 代码片段隐藏这个元素:

.sy__file > .b3-list[data-close-counter="0"] {
    display: none;
}

image

fix siyuan-note#13887 Point 1

```css
.sy__file > .b3-list[data-close-counter="0"] {
	display: none;
}
```
@Vanessa219
Copy link
Copy Markdown
Member

如果只是这个的功能点的话,是否可以直接在原有代码上修改,不需要再添加代码片段?

@TCOTC
Copy link
Copy Markdown
Contributor Author

TCOTC commented Jun 6, 2025

#14982

@Vanessa219 Vanessa219 closed this Jun 7, 2025
@TCOTC TCOTC deleted the fix/13887-Point-1 branch June 7, 2025 05:34
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

Successfully merging this pull request may close these issues.

2 participants