add creation iframe
This commit is contained in:
@@ -29,7 +29,11 @@ fragment NodePartial on MapItemInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
... on Creation {
|
... on Creation {
|
||||||
content: texte
|
content: texte,
|
||||||
|
piece: oeuvre {
|
||||||
|
url,
|
||||||
|
title
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# For debug
|
# For debug
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
no-header
|
no-header
|
||||||
:id="id"
|
:id="id"
|
||||||
:body-class="{ paddings: !noCross }"
|
:body-class="{ paddings: !noCross }"
|
||||||
backdrop backdrop-variant="light"
|
|
||||||
>
|
>
|
||||||
<template #default="{ hide, visible }">
|
<template #default="{ hide, visible }">
|
||||||
<div v-if="!noCross" class="btn-close-wrapper">
|
<div v-if="!noCross" class="btn-close-wrapper">
|
||||||
@@ -35,7 +34,6 @@ export default {
|
|||||||
::v-deep {
|
::v-deep {
|
||||||
.b-sidebar {
|
.b-sidebar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: red;
|
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
||||||
@media (orientation: portrait) {
|
@media (orientation: portrait) {
|
||||||
@@ -61,10 +59,6 @@ export default {
|
|||||||
padding: $node-view-spacer-y $node-view-spacer-x;
|
padding: $node-view-spacer-y $node-view-spacer-x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.b-sidebar-backdrop {
|
|
||||||
opacity: 0.3;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-close-wrapper {
|
.btn-close-wrapper {
|
||||||
|
|||||||
+58
-1
@@ -7,7 +7,7 @@
|
|||||||
<side-view id="gallery-map-side">
|
<side-view id="gallery-map-side">
|
||||||
<template #default="{ hide, visible }">
|
<template #default="{ hide, visible }">
|
||||||
<gallery-map
|
<gallery-map
|
||||||
v-if="creations"
|
v-if="creations && creation"
|
||||||
:nodes="creations" :node="creation"
|
:nodes="creations" :node="creation"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
@open-creation="openCreation($event, hide)"
|
@open-creation="openCreation($event, hide)"
|
||||||
@@ -40,6 +40,19 @@
|
|||||||
</template>
|
</template>
|
||||||
</side-view>
|
</side-view>
|
||||||
|
|
||||||
|
|
||||||
|
<b-modal
|
||||||
|
v-if="creation && creation.piece.url"
|
||||||
|
:id="'modal-creation' + creation.id"
|
||||||
|
class="modal-creation"
|
||||||
|
static hide-footer hide-header
|
||||||
|
>
|
||||||
|
<template #default="{ hide }">
|
||||||
|
<button-expand expanded @click="hide()" />
|
||||||
|
<iframe :src="creation.piece.url" width="100%" height="100%" />
|
||||||
|
</template>
|
||||||
|
</b-modal>
|
||||||
|
|
||||||
<b-overlay
|
<b-overlay
|
||||||
:show="!creation"
|
:show="!creation"
|
||||||
spinner-variant="creation"
|
spinner-variant="creation"
|
||||||
@@ -161,4 +174,48 @@ export default {
|
|||||||
font-family: $font-family-text;
|
font-family: $font-family-text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-creation {
|
||||||
|
z-index: 1100 !important;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
::v-deep .modal {
|
||||||
|
position: absolute;
|
||||||
|
background-color: transparent;
|
||||||
|
width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&-dialog {
|
||||||
|
max-width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-content {
|
||||||
|
height: 100%;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-body {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-backdrop {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-expand {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="node-view-img-wrapper">
|
<div class="node-view-img-wrapper">
|
||||||
<img :src="node.image.url" :alt="node.image.alt">
|
<img :src="node.image.url" :alt="node.image.alt">
|
||||||
|
|
||||||
<button-expand @click="$emit('view-creation')" v-b-modal="'modal-creation' + node.id" class="center" />
|
<button-expand v-if="node.piece.url" v-b-modal="'modal-creation' + node.id" class="center" />
|
||||||
|
|
||||||
<div class="btns-artwork">
|
<div class="btns-artwork">
|
||||||
<b-button variant="depart" class="btn-shadow btn-artwork mr-2" @click="$emit('view-origin')">
|
<b-button variant="depart" class="btn-shadow btn-artwork mr-2" @click="$emit('view-origin')">
|
||||||
@@ -191,10 +191,10 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.node-view {
|
.node-view {
|
||||||
height: 100%;
|
min-height: 100%;
|
||||||
|
|
||||||
&-wrapper {
|
&-wrapper {
|
||||||
height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user