fixes
This commit is contained in:
parent
d5b860b34e
commit
db1806e9a0
3 changed files with 8 additions and 3 deletions
|
@ -1453,7 +1453,9 @@ class Channel extends SnowFlake {
|
||||||
this.fakeMessages = this.fakeMessages.filter((_) => _[0] !== message[0]);
|
this.fakeMessages = this.fakeMessages.filter((_) => _[0] !== message[0]);
|
||||||
message[1].remove();
|
message[1].remove();
|
||||||
for (const {url} of message[0].attachments) {
|
for (const {url} of message[0].attachments) {
|
||||||
|
try {
|
||||||
URL.revokeObjectURL(url);
|
URL.revokeObjectURL(url);
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
this.fakeMessageMap.delete(id);
|
this.fakeMessageMap.delete(id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,8 @@ class File {
|
||||||
}
|
}
|
||||||
OSpoiler ||= this.filename.startsWith("SPOILER_");
|
OSpoiler ||= this.filename.startsWith("SPOILER_");
|
||||||
const src = this.proxy_url || this.url;
|
const src = this.proxy_url || this.url;
|
||||||
|
this.width ||= 1000;
|
||||||
|
this.height ||= 1000;
|
||||||
if (this.width && this.height) {
|
if (this.width && this.height) {
|
||||||
let scale = 1;
|
let scale = 1;
|
||||||
const max = 96 * 3;
|
const max = 96 * 3;
|
||||||
|
@ -67,8 +69,8 @@ class File {
|
||||||
img.src = src;
|
img.src = src;
|
||||||
div.append(img);
|
div.append(img);
|
||||||
if (this.width && !fullScreen) {
|
if (this.width && !fullScreen) {
|
||||||
div.style.width = this.width + "px";
|
div.style.maxWidth = this.width + "px";
|
||||||
div.style.height = this.height + "px";
|
div.style.maxHeight = this.height + "px";
|
||||||
}
|
}
|
||||||
if (!fullScreen) {
|
if (!fullScreen) {
|
||||||
if (OSpoiler) {
|
if (OSpoiler) {
|
||||||
|
|
|
@ -1106,6 +1106,7 @@ span.instanceStatus {
|
||||||
background: var(--blank-bg);
|
background: var(--blank-bg);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
height: 192px;
|
||||||
}
|
}
|
||||||
.messageimgdiv {
|
.messageimgdiv {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue