Fixed dialog problems
This commit is contained in:
@@ -36,15 +36,15 @@
|
||||
|
||||
<style scoped>
|
||||
.dialog-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
top: calc(50% - 25em);
|
||||
left: 5%;
|
||||
width: 90%;
|
||||
height: 50em;
|
||||
background: rgba(0, 0, 0, .5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.dialog {
|
||||
@@ -60,4 +60,3 @@
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
<div class="dialog-content">
|
||||
<h3>Bild auswählen</h3>
|
||||
<div class="images-container">
|
||||
<div v-for="image in images" :key="image.id" class="image-block" @click="selectImage(image)" :class="{ selected: image.id === selectedImage?.id }">
|
||||
<div v-for="image in images" :key="image.id" class="image-block" @click="selectImage(image)"
|
||||
:class="{ selected: image.id === selectedImage?.id }">
|
||||
<img :src="'/images/uploads/' + image.filename" />
|
||||
<span v-if="image.description" :title="image.description">{{ image.title }}</span>
|
||||
<span v-else>{{ image.title }}</span>
|
||||
@@ -77,21 +78,22 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
.dialog-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
top: calc(50% - 25em);
|
||||
left: 5%;
|
||||
width: 90%;
|
||||
height: 50em;
|
||||
background: rgba(0, 0, 0, .5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.dialog-content {
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.images-container {
|
||||
|
||||
Reference in New Issue
Block a user