Spaces:
Sleeping
Sleeping
File size: 640 Bytes
43a06dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<script lang="ts">
import type { DialogButton as DialogButtonType } from "$lib/types/dialog";
import DialogButton from "$components/dialog/DialogButton.svelte";
export let buttons: DialogButtonType[];
export let closeFunc: () => void;
</script>
<div class="popup-buttons">
{#each buttons as button}
<DialogButton {button} {closeFunc} />
{/each}
</div>
<style>
.popup-buttons {
display: flex;
flex-direction: row;
width: 100%;
gap: calc(var(--padding) / 2);
overflow: scroll;
border-radius: var(--border-radius);
min-height: 40px;
}
</style>
|