source: main/trunk/model-interfaces-dev/atea/ocr/src/components/ModalDialog.vue@ 35752

Last change on this file since 35752 was 35752, checked in by cstephen, 2 years ago

Implement editing and downloading of the OCR result.

File size: 985 bytes
Line 
1<template>
2<div class="background-cover">
3 <div class="paper modal">
4 <span class="heading3">{{ title }}</span>
5 <hr />
6
7 <span>{{ description }}</span>
8
9 <div class="buttons">
10 <button v-for="name in buttons" :key="name" class="btn-primary" @click="$emit('close', name)">{{ name }}</button>
11 </div>
12 </div>
13</div>
14</template>
15
16<style lang="scss" scoped>
17.background-cover {
18 position: absolute;
19 height: 100%;
20 width: 100%;
21
22 display: flex;
23 justify-content: center;
24 align-items: center;
25
26 background-color: #00000033;
27 z-index: 9999;
28}
29
30.modal {
31 max-width: 50%;
32}
33
34.buttons {
35 display: flex;
36 justify-content: flex-end;
37 gap: 0.5em;
38 margin-top: 1em;
39}
40
41hr {
42 margin: 0.5em 0;
43 width: 100%;
44}
45</style>
46
47<script>
48export default {
49 name: "ModalDialog",
50 props: {
51 title: String,
52 description: String,
53 buttons: Array
54 },
55 emits: [ "close" ]
56}
57</script>
Note: See TracBrowser for help on using the repository browser.