Hiding YAML for particular note to get rid of empty gap

What I’m trying to do

I’m trying to get rid of the empty space from Properties. The desired result is achieved by toogling Editor>Display>Properties in document>Hide, but the problem is that its affecting all properties, but i need toogling for specific note.

How it looks

Desired look

This effect is from toogling “properties in doc” it affects whole document, and i don’t want it to

Source look

Things I have tried

I tried some css snippets for hiding, toogling view of properties, but in most cases it also affected snippets for dashboard, and for some reason, in all cases, gap between banner stayed.

You could try this CSS snippet:

.no-props {
    --metadata-display-reading: none; 
    --metadata-display-editing: none; 
}

and add no-props to the YAML/Properties of note(s) that you want to hide Properties in. e.g.

---
cssclasses:
  - dashboard
  - no-props
banner:
banner_y:
---
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.