Merge remote-tracking branch 'origin/main' into sort-members-list
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful

This commit is contained in:
Twig 2025-07-18 07:34:13 +02:00
parent 8ffe3aa738
commit 771c0699a7
No known key found for this signature in database
9 changed files with 186 additions and 7 deletions

View file

@ -1,14 +1,14 @@
<template>
<div @click="props.callback()" class="button" :class="props.variant + '-button'">
<button @click="props.callback ? props.callback() : null" class="button" :class="props.variant + '-button'">
{{ props.text }}
</div>
</button>
</template>
<script lang="ts" setup>
const props = defineProps<{
text: string,
callback: CallableFunction,
callback?: CallableFunction,
variant?: "normal" | "scary" | "neutral",
}>();
@ -28,6 +28,8 @@ const props = defineProps<{
border-radius: 0.7rem;
text-decoration: none;
display: inline-block;
border: none;
}
.button:hover {