diff --git a/front/src/components/MenuItem.svelte b/front/src/components/MenuItem.svelte index 23e8a09..6c9fb30 100644 --- a/front/src/components/MenuItem.svelte +++ b/front/src/components/MenuItem.svelte @@ -4,37 +4,50 @@ import { type Item, Labels} from "../lib/types"; import LoadingImage from '/MenuItemLoadingAlt.svg'; + import {onMount} from "svelte"; export let item: Item; + + let element: HTMLElement; + + onMount(() => { + keepSquare(); + }) + + function keepSquare() { + element.style.height = ""; + element.style.height = element.offsetWidth + "px"; + } -