change const height = Math.min, remove 2000

This commit is contained in:
ogerly 2019-12-18 07:56:36 +01:00
parent ed617f8c83
commit 0213d64ba5
3 changed files with 10 additions and 3 deletions

View File

@ -8,5 +8,8 @@
} }
], ],
"editor.formatOnSave": false, "editor.formatOnSave": false,
"eslint.autoFixOnSave": true "eslint.autoFixOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
} }

View File

@ -25,7 +25,11 @@
<label for="blur-img">{{ $t('contribution.inappropriatePicture') }}</label> <label for="blur-img">{{ $t('contribution.inappropriatePicture') }}</label>
<input name="checkbox" type="checkbox" id="blur-img" v-model="blurImage" /> <input name="checkbox" type="checkbox" id="blur-img" v-model="blurImage" />
<p> <p>
<a href="https://support.human-connection.org/kb/faq.php?id=113" target="_blank" class="link"> <a
href="https://support.human-connection.org/kb/faq.php?id=113"
target="_blank"
class="link"
>
{{ $t('contribution.inappropriatePictureText') }} {{ $t('contribution.inappropriatePictureText') }}
<ds-icon name="question-circle" /> <ds-icon name="question-circle" />
</a> </a>

View File

@ -148,7 +148,7 @@ export default {
}, },
mounted() { mounted() {
const width = this.$el.offsetWidth const width = this.$el.offsetWidth
const height = Math.min(width / this.post.imageAspectRatio, 2000) const height = Math.min(width / this.post.imageAspectRatio)
const imageElement = this.$el.querySelector('.ds-card-image') const imageElement = this.$el.querySelector('.ds-card-image')
if (imageElement) { if (imageElement) {