Remove aspect ratio on cropper, limit to max-height 2000px

- discussed it today's internal meeting and agreed upon with
@alina-beck, @Tirokk, @ogerly, @datenbrei, Dennis Hack

- max-height was a suggestion and can be changed at any time
This commit is contained in:
mattwr18 2019-10-14 13:45:41 +02:00
parent c85b2d49b6
commit 1c6b5f941b
5 changed files with 70 additions and 76 deletions

View File

@ -1,5 +1,4 @@
<template>
<ds-container width="medium">
<ds-form ref="contributionForm" v-model="form" :schema="formSchema">
<template slot-scope="{ errors }">
<hc-teaser-image :contribution="contribution" @addTeaserImage="addTeaserImage">
@ -69,7 +68,6 @@
</ds-card>
</template>
</ds-form>
</ds-container>
</template>
<script>

View File

@ -134,7 +134,7 @@ export default {
<style lang="scss" scoped>
.ds-card-image img {
width: 100%;
max-height: 300px;
max-height: 2000px;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;

View File

@ -110,7 +110,7 @@ export default {
image.src = URL.createObjectURL(file)
editor.appendChild(image)
// Create Cropper.js and pass image
let cropper = new Cropper(image, { aspectRatio: 1.25 / 1 })
let cropper = new Cropper(image, {})
},
dropzoneDrop() {
let cropOverlay = document.querySelectorAll('.crop-overlay')[0]

View File

@ -200,7 +200,7 @@ export default {
.ds-card-image {
img {
max-height: 710px;
max-height: 2000px;
object-fit: cover;
object-position: center;
}

View File

@ -87,9 +87,5 @@ export default {
<style lang="scss">
.related-post {
box-shadow: $box-shadow-base;
.ds-card-image {
max-height: 80px;
}
}
</style>