Better entity modal padding

This commit is contained in:
Fabio Manganiello 2022-10-07 11:12:30 +02:00
parent 16c55b45f6
commit 958ef6b987
Signed by untrusted user: blacklight
GPG Key ID: D90FBA7F76362774
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="modal-container fade-in" :id="id" :class="{hidden: !isVisible}" :style="{'--z-index': zIndex}" @click="close">
<div class="modal">
<div class="modal" :class="$attrs.class">
<div class="content" :style="{'--width': width, '--height': height}" @click="$event.stopPropagation()">
<div class="header" v-text="title" v-if="title"></div>
<div class="body">
@ -188,4 +188,4 @@ export default {
}
}
}
</style>
</style>

View File

@ -1,5 +1,5 @@
<template>
<Modal :visible="visible" :title="entity.name || entity.external_id">
<Modal :visible="visible" class="entity-modal" :title="entity.name || entity.external_id">
<ConfirmDialog ref="deleteConfirmDiag" title="Confirm entity deletion" @input="onDelete">
Are you <b>sure</b> that you want to delete this entity? <br/><br/>
Note: you should only delete an entity if its plugin has been disabled
@ -210,6 +210,14 @@ export default {
<style lang="scss" scoped>
:deep(.modal) {
.body {
padding: .5em !important;
.table-row {
box-shadow: none;
}
}
.icon-canvas {
display: inline-flex;
align-items: center;