WIP Позиционирование descriptionCard в 4 стороны

This commit is contained in:
Daria Golova
2022-11-18 16:08:34 +03:00
parent e7463b5296
commit c8fc1b944a
5 changed files with 33 additions and 34 deletions

View File

@@ -29,7 +29,6 @@
@close-description-card="closeDescriptionCard"
@delete-event="transmitDeleteEvent"
:schedule-body-ref="scheduleBodyRef"
:event-card-size="cardSize"
)
</template>
@@ -223,12 +222,6 @@ export default {
this.hideDescriptionCard();
this.setDefaultTheme();
},
writeCardSize() {
this.cardSize = {
width: this.$refs["eventCard"].getBoundingClientRect().width,
height: this.calculateCardHeight - 8,
};
},
},
watch: {
changeFormWasClosed: {
@@ -241,21 +234,16 @@ export default {
},
},
},
mounted() {
this.writeCardSize();
},
};
</script>
<style lang="sass" scoped>
.wrapper
position: absolute
z-index: 3
width: calc(100% - 8px)
height: 23px
.default-theme
z-index: 0
z-index: 2
.card
background-color: var(--bg-color)
border: 2px solid var(--border-color)
@@ -271,6 +259,7 @@ export default {
background-color: var(--font-color)
.active-theme
z-index: 3
.card
background-color: var(--bg-active)
border: 2px solid var(--border-active-color)