forked from MapComplete/MapComplete
Add icon size options to mapping icons
This commit is contained in:
parent
29ad3be280
commit
2e6069b95b
10 changed files with 159 additions and 44 deletions
|
@ -45,7 +45,7 @@ export default class TagRenderingAnswer extends VariableUiElement {
|
|||
if(tr.icon === undefined){
|
||||
return text
|
||||
}
|
||||
return new Combine([new Img(tr.icon).SetClass("w-6 max-h-6 pr-2"), text]).SetClass("flex")
|
||||
return new Combine([new Img(tr.icon).SetClass("mapping-icon-"+(tr.iconClass ?? "small")), text]).SetClass("flex items-center")
|
||||
})
|
||||
if (valuesToRender.length === 1) {
|
||||
return valuesToRender[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue