fix creation img url & modal scope

This commit is contained in:
axolotle
2022-01-22 14:37:16 +01:00
parent 23e7b57154
commit 7b67f717c2
2 changed files with 6 additions and 7 deletions
+4 -5
View File
@@ -1,8 +1,8 @@
<template> <template>
<b-modal <b-modal
:id="id" :id="id"
class="modal-image" modal-class="modal-image"
static hide-footer hide-header hide-footer hide-header
> >
<template #default="{ close }"> <template #default="{ close }">
<div class="modal-image-wrapper"> <div class="modal-image-wrapper">
@@ -28,11 +28,11 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss">
.modal-image { .modal-image {
z-index: 1100; z-index: 1100;
::v-deep .modal { .modal {
&-dialog { &-dialog {
max-width: 100%; max-width: 100%;
height: 100%; height: 100%;
@@ -76,6 +76,5 @@ export default {
} }
} }
} }
} }
</style> </style>
+1 -1
View File
@@ -53,7 +53,7 @@ export default {
created () { created () {
if (this.node.images && this.node.images.length) { if (this.node.images && this.node.images.length) {
const { url, alt, id } = this.node.images[0] const { url, alt, id } = this.node.images[0]
this.image = { alt, id, url: url.replace('api', 'api/sites/default/files') } this.image = { alt, id, url }
} }
} }
} }