Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix modal code, remove old css

Smaug673943be03c09f42
diff --git a/frontend/components/Modal.vue b/frontend/components/Modal.vue
index a069577e..98d8f9c4 100644
--- a/frontend/components/Modal.vue
+++ b/frontend/components/Modal.vue
@@ -1,8 +1,3 @@
-<script setup lang="ts">
-defineProps<{ show: boolean }>()
-const emit = defineEmits(['close', 'confirm'])
-</script>
-
<template>
<Transition name="modal">
<div v-if="show" class="modal-mask">
@@ -13,11 +8,16 @@ const emit = defineEmits(['close', 'confirm'])
</Transition>
</template>
+<script setup lang="ts">
+defineProps<{ show: boolean }>();
+const emit = defineEmits(['close', 'confirm']);
+</script>
+
<style lang="scss" scoped>
.modal-container {
width: 500px;
margin: auto;
- padding: 20px 30px;
+ padding: 20px;
background-color: var(--bg-contrast);
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
@@ -25,19 +25,6 @@ const emit = defineEmits(['close', 'confirm'])
font-size: initial;
}
-.modal-body {
- margin: 20px 0;
-}
-
-.modal-close-button {
- float: left;
-}
-
-.modal-confirm-button {
- float: right;
-}
-
-
.modal-enter-from,
.modal-leave-to {
opacity: 0;
@@ -48,4 +35,4 @@ const emit = defineEmits(['close', 'confirm'])
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
-</style>
\ No newline at end of file
+</style>