Macavity / siyuan-database-properties-panel

MIT License
7 stars 1 forks source link

some issues with the feature "Show empty properties" #16

Closed QMike0 closed 1 month ago

QMike0 commented 1 month ago

Describe the bug

  1. When the feature "Show empty properties" is enabled, the attribute panel will not be shown at the beginning of the articles, which may be a bug.

image

  1. Some issues with Chinese translation In the plugin settings interface:
    • "Show empty properties" should be translated into "显示空值" or “显示空属性”
    • "(Experimental) Use to hide properties that have no value in the panel. Does not fully work with template properties, which contain html, or numbers, which often have the value "0"." should be "(试验性) 用于隐藏面板中没有值的属性。无法完全适用于模板列(包含html)或数字列(可能包含数值0)"

Environment:

Macavity commented 1 month ago

When the feature "Show empty properties" is enabled, the attribute panel will not be shown at the beginning of the articles, which may be a bug.

Thank you for the bug report 👍

I've actually reproduced the issue as well just now. This table entry:

Screenshot 2024-10-22 at 08 51 02

Causes an error in the document page:

Screenshot 2024-10-22 at 09 04 47

And secondly, thank you for helping me improve the chinese translation ❤️

QMike0 commented 1 month ago

It seems that the first issue still exists in v 0.4.3 (Siyuan version: v3.1.10) image

Macavity commented 1 month ago

@QMike0 Which types of empty fields do you have there?

Macavity commented 1 month ago

I'll assume it was an asset field as I found another issue lurking in there which I fixed in v0.4.4.

Do you still have the issue?

QMike0 commented 1 month ago

Now it could run normally, seems that the problem is caused by the asset field. Thanks a lot!