add: only delete swipe, edit on tap

Edit price cards on tap, only delete swipe exists, fixed dialogs, add ripple
This commit is contained in:
Fiona Lena Urban 2025-05-12 14:56:05 +02:00
parent 1a5dd102e0
commit 38cd37cf74
9 changed files with 145 additions and 93 deletions

View file

@ -1,9 +1,9 @@
<template>
<dialog
ref="dialog"
closedby="any"
closedby="none"
>
<form method="dialog" class="wrapper">
<form method="dialog" class="wrapper" ref="wrapper">
<header class="flex-row">
Wirklich löschen?
<PpButton class="round text">
@ -35,5 +35,11 @@ type Props = {
defineProps<Props>()
defineEmits(['delete'])
const dialog = useTemplateRef<HTMLDialogElement>('dialog')
const wrapper = useTemplateRef<HTMLElement>('wrapper')
onMounted(() => {
onClickOutside(wrapper, () => dialog.value?.close())
})
</script>