mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 17:11:43 +00:00
fixed bugs
This commit is contained in:
parent
fce4f69c49
commit
696e03a4c5
2 changed files with 4 additions and 8 deletions
|
|
@ -226,12 +226,8 @@ export default {
|
||||||
const w = messageLog.offsetWidth;
|
const w = messageLog.offsetWidth;
|
||||||
const h = messageLog.offsetHeight;
|
const h = messageLog.offsetHeight;
|
||||||
|
|
||||||
let minWidth = w / 4;
|
let minWidth = w / 1.7;
|
||||||
let minHeight = h / 4;
|
let minHeight = h / 1.7;
|
||||||
if (w <= 800) {
|
|
||||||
minWidth = w / 1.7;
|
|
||||||
minHeight = h / 1.7;
|
|
||||||
}
|
|
||||||
|
|
||||||
const dimensions = this.message.files[0].dimensions;
|
const dimensions = this.message.files[0].dimensions;
|
||||||
const srcWidth = dimensions.width;
|
const srcWidth = dimensions.width;
|
||||||
|
|
@ -264,11 +260,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.imageSize();
|
||||||
setTimeout(() => (this.loaded = true));
|
setTimeout(() => (this.loaded = true));
|
||||||
this.isGif = this.userAvatar.endsWith(".gif");
|
this.isGif = this.userAvatar.endsWith(".gif");
|
||||||
const files = this.files;
|
const files = this.files;
|
||||||
if (!files || files.length === 0 || !files[0].dimensions) return undefined;
|
if (!files || files.length === 0 || !files[0].dimensions) return undefined;
|
||||||
this.imageSize();
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState("settingsModule", ["apperance"]),
|
...mapState("settingsModule", ["apperance"]),
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="friends">
|
<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' }">
|
<div class="tab" v-if="friends[0].length" :style="{ height: '25px' }">
|
||||||
Pending
|
Pending
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue