Skip to content

Commit

Permalink
fix: Several heading problems #14
Browse files Browse the repository at this point in the history
- Redraw heading icon
- Modify heading selector
- 修复了不可编辑标题会换行问题
  • Loading branch information
emptylight370 committed Nov 28, 2024
1 parent 0985f99 commit f2bbeb8
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 1,619 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ Limited by the configuration loading method, updated configurations for new vers

> Full changelog view [ChangeLog](https://github.com/emptylight370/siyuan-vscodelite-edit/blob/main/changelog.md)
- V1.4.15
- Redraw heading icon
- Fix heading display style
- V1.4.14
- Adjust fullscreen display style under background image plugin adaption
- V1.4.13
- Edit repo link, maybe you should reinstall
- V1.4.12
- Remove transparency from tables to alleviate the problem of losing background in tables(only transparent background)

# Plugin fitness

Expand Down
5 changes: 3 additions & 2 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@

> 完整更新日志查看[changelog](https://github.com/emptylight370/siyuan-vscodelite-edit/blob/main/changelog.md)
- V1.4.15
- 重绘标题图标
- 修复标题显示效果
- V1.4.14
- 调整背景插件适配下全屏显示效果
- V1.4.13
- 修改仓库链接,可能需要重新安装
- V1.4.12
- 去除表格透明以缓解表格失去背景问题(仅透明背景)

# 插件适配

Expand Down
10 changes: 8 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# ChangeLog

- V1.4.15
- 重绘标题图标
- 修复标题显示效果(#14)
- Redraw heading icon
- Fix heading display style(#14)
- V1.4.14
- 调整背景插件适配下全屏显示效果
- Adjust fullscreen display style under background image plugin adaption
- 调整背景插件适配下全屏显示效果(#15)
- Adjust fullscreen display style under background image plugin adaption(#15)
- V1.4.13
- 修改仓库链接,可能需要重新安装
- Edit repo link, maybe you should reinstall
Expand Down
242 changes: 4 additions & 238 deletions resources/h1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
187 changes: 5 additions & 182 deletions resources/h2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
221 changes: 6 additions & 215 deletions resources/h3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
282 changes: 7 additions & 275 deletions resources/h4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
318 changes: 8 additions & 310 deletions resources/h5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
377 changes: 9 additions & 368 deletions resources/h6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions sub/block/title-no-shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
}

/* h1标签 */
[data-node-id].h1 [contenteditable="true"],
.protyle-preview h1 [contenteditable="true"] {
[data-node-id].h1 div:nth-child(1),
.protyle-preview h1 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -56,8 +56,8 @@ ul.b3-list.b3-list--background [data-subtype=h1] .b3-list-item__text {
}

/* h2标签 */
[data-node-id].h2 [contenteditable="true"],
.protyle-preview h2 [contenteditable="true"] {
[data-node-id].h2 div:nth-child(1),
.protyle-preview h2 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -107,8 +107,8 @@ ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-item__text {
}

/* h3标签 */
[data-node-id].h3 [contenteditable="true"],
.protyle-preview h3 [contenteditable="true"] {
[data-node-id].h3 div:nth-child(1),
.protyle-preview h3 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -158,8 +158,8 @@ ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-item__text {
}

/* h4标签 */
[data-node-id].h4 [contenteditable="true"],
.protyle-preview h4 [contenteditable="true"] {
[data-node-id].h4 div:nth-child(1),
.protyle-preview h4 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -209,8 +209,8 @@ ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-item__text {
}

/* h5标签 */
[data-node-id].h5 [contenteditable="true"],
.protyle-preview h5 [contenteditable="true"] {
[data-node-id].h5 div:nth-child(1),
.protyle-preview h5 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -260,8 +260,8 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-item__text {
}

/* h6标签 */
[data-node-id].h6 [contenteditable="true"],
.protyle-preview h6 [contenteditable="true"] {
[data-node-id].h6 div:nth-child(1),
.protyle-preview h6 div:nth-child(1) {
display: inline-block;
}

Expand Down
25 changes: 12 additions & 13 deletions sub/block/title-shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
}

/* h1标签 */
[data-node-id].h1 [contenteditable="true"],
.protyle-preview h1 [contenteditable="true"] {
[data-node-id].h1 div:nth-child(1),
.protyle-preview h1 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -58,8 +58,8 @@ ul.b3-list.b3-list--background [data-subtype=h1] .b3-list-item__text {
}

/* h2标签 */
[data-node-id].h2 [contenteditable="true"],
.protyle-preview h2 [contenteditable="true"] {
[data-node-id].h2 div:nth-child(1),
.protyle-preview h2 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -110,8 +110,8 @@ ul.b3-list.b3-list--background [data-subtype=h2] .b3-list-item__text {
}

/* h3标签 */
[data-node-id].h3 [contenteditable="true"],
.protyle-preview h3 [contenteditable="true"] {
[data-node-id].h3 div:nth-child(1),
.protyle-preview h3 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -162,8 +162,8 @@ ul.b3-list.b3-list--background [data-subtype=h3] .b3-list-item__text {
}

/* h4标签 */
[data-node-id].h4 [contenteditable="true"],
.protyle-preview h4 [contenteditable="true"] {
[data-node-id].h4 div:nth-child(1),
.protyle-preview h4 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -214,8 +214,8 @@ ul.b3-list.b3-list--background [data-subtype=h4] .b3-list-item__text {
}

/* h5标签 */
[data-node-id].h5 [contenteditable="true"],
.protyle-preview h5 [contenteditable="true"] {
[data-node-id].h5 div:nth-child(1),
.protyle-preview h5 div:nth-child(1) {
display: inline-block;
}

Expand Down Expand Up @@ -266,8 +266,8 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-item__text {
}

/* h6标签 */
[data-node-id].h6 [contenteditable="true"],
.protyle-preview h6 [contenteditable="true"] {
[data-node-id].h6 div:nth-child(1),
.protyle-preview h6 div:nth-child(1) {
display: inline-block;
}

Expand All @@ -282,7 +282,6 @@ ul.b3-list.b3-list--background [data-subtype=h5] .b3-list-item__text {
mask: url(../../resources/h6.svg) no-repeat center center;
mask-size: contain;
background-color: var(--mk-block-header-h6);
/* filter: invert(40%); */
top: 0.1rem;
margin-right: 0.2rem;
}
Expand Down

0 comments on commit f2bbeb8

Please sign in to comment.