MAke icons not reserve space if the icon is "none" in icon-tiles-grid
This commit is contained in:
parent
26523c990f
commit
0489e22f14
@ -50,9 +50,11 @@ export class IconTilesGrid extends Component<typeof component_arguments> {
|
||||
style={`--tile-bg-color: var(${tile.color}); --tile-fg-color: var(${getFgColorVariable(tile.color, 4.2)})`}
|
||||
href={tile.url ? tile.url : false}
|
||||
>
|
||||
<div class="icon">
|
||||
{tile.icon == "none" ? "" : icon(tile.icon)}
|
||||
</div>
|
||||
{tile.icon != "none" ? (
|
||||
<div class="icon">{icon(tile.icon)}</div>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
<div class="name">{insert_nbsp(tile.name)}</div>
|
||||
<div class="description">{insert_nbsp(tile.name)}</div>
|
||||
</a>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user