fixed bugs

This commit is contained in:
supertiger1234 2020-02-18 11:04:00 +00:00
parent fce4f69c49
commit 696e03a4c5
2 changed files with 4 additions and 8 deletions

View file

@ -226,12 +226,8 @@ export default {
const w = messageLog.offsetWidth;
const h = messageLog.offsetHeight;
let minWidth = w / 4;
let minHeight = h / 4;
if (w <= 800) {
minWidth = w / 1.7;
minHeight = h / 1.7;
}
let minWidth = w / 1.7;
let minHeight = h / 1.7;
const dimensions = this.message.files[0].dimensions;
const srcWidth = dimensions.width;
@ -264,11 +260,11 @@ export default {
}
},
mounted() {
this.imageSize();
setTimeout(() => (this.loaded = true));
this.isGif = this.userAvatar.endsWith(".gif");
const files = this.files;
if (!files || files.length === 0 || !files[0].dimensions) return undefined;
this.imageSize();
},
computed: {
...mapState("settingsModule", ["apperance"]),

View file

@ -1,6 +1,6 @@
<template>
<div class="friends">
<virtual-list :size="50" :remain="15" v-if="loaded" :variable="true">
<virtual-list :size="50" :remain="20" v-if="loaded" :variable="true">
<div class="tab" v-if="friends[0].length" :style="{ height: '25px' }">
Pending
</div>