mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
change const height = Math.min, remove 2000
This commit is contained in:
parent
ed617f8c83
commit
0213d64ba5
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@ -8,5 +8,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"editor.formatOnSave": false,
|
"editor.formatOnSave": false,
|
||||||
"eslint.autoFixOnSave": true
|
"eslint.autoFixOnSave": true,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user