Refactoring of labels, better exposure

This commit is contained in:
Pieter Vander Vennet 2021-04-10 23:53:13 +02:00
parent 04b83311f7
commit 12b92d286b
4 changed files with 23 additions and 36 deletions

View file

@ -37,11 +37,13 @@
]
},
"icon": {
"render": "./assets/themes/bookcases/bookcase.svg;",
"render": "./assets/themes/bookcases/bookcase.svg;"
},
"label": {
"mappings": [
{
"if": "name~*",
"then": "./assets/themes/bookcases/bookcase.svg;<html><div style='margin-top: 42px; background: white; padding: 0.25em; border-radius:0.5em'>{name}</div></html>"
"then": "<div style='margin-top: 42px; background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
},