prettier confirmation dialog

This commit is contained in:
Henry Jameson 2026-06-10 02:12:03 +03:00
commit 01e2e0139a
2 changed files with 45 additions and 1 deletions

View file

@ -1,5 +1,10 @@
import DialogModal from 'src/components/dialog_modal/dialog_modal.vue'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faCircleQuestion } from '@fortawesome/free-solid-svg-icons'
library.add(faCircleQuestion)
/**
* This component emits the following events:
* cancelled, emitted when the action should not be performed;

View file

@ -8,7 +8,16 @@
<span v-text="title" />
</template>
<slot />
<div class="content">
<FAIcon
icon="circle-question"
size="3x"
fixed-width
/>
<div class="text">
<slot />
</div>
</div>
<template #footer>
<slot name="footerLeft" />
@ -29,3 +38,33 @@
</template>
<script src="./confirm_modal.js"></script>
<style lang="scss">
.confirm-modal {
.dialog-modal-content {
padding: 0;
}
.content {
display: flex;
align-items: start;
text-align: left;
line-height: 1.4;
p {
margin: 0.5em;
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
}
.text {
max-width: 50ch;
}
}
</style>