Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Video-Downloader/web/src/components/dialog/DialogButtons.svelte
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (22 sloc)
640 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |