UI: fix icon alignment

This commit is contained in:
Pieter Vander Vennet 2024-07-29 14:39:56 +02:00
parent fd16e165c4
commit 953bdaeaa5
3 changed files with 6 additions and 5 deletions

View file

@ -40,7 +40,7 @@
{#if iconsParsed !== undefined && iconsParsed.length > 0}
<div class={twMerge("relative", size)}>
{#each iconsParsed as icon}
<div class="absolute top-0 left-0 h-full w-full">
<div class="absolute top-0 left-0 h-full w-full flex items-center">
<Icon icon={icon.icon} color={icon.color} {clss} />
</div>
{/each}

View file

@ -6,7 +6,6 @@
import { UIEventSource } from "../../../Logic/UIEventSource"
import LayerConfig from "../../../Models/ThemeConfig/LayerConfig"
import { twJoin } from "tailwind-merge"
import Icon from "../../Map/Icon.svelte"
import Marker from "../../Map/Marker.svelte"
export let selectedElement: Feature