From 02485de52ceb7f8bdc6d99aaf6db1d176a52d8c2 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 1 Nov 2025 01:20:30 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20=E8=B0=83=E6=95=B4=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=AA=92=E4=BD=93=E7=9A=84=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/custom-elements/chat-image.ts | 4 ++-- client/ui/custom-elements/chat-video.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/ui/custom-elements/chat-image.ts b/client/ui/custom-elements/chat-image.ts index d834be3..c3078a1 100644 --- a/client/ui/custom-elements/chat-image.ts +++ b/client/ui/custom-elements/chat-image.ts @@ -11,8 +11,8 @@ customElements.define('chat-image', class extends HTMLElement { connectedCallback() { this.style.display = 'block' const e = new Image() - e.style.maxWidth = "100%" - e.style.maxHeight = "90%" + e.style.maxWidth = "400px" + e.style.maxHeight = "300px" e.style.marginTop = '5px' e.style.marginBottom = '5px' e.style.borderRadius = "var(--mdui-shape-corner-medium)" diff --git a/client/ui/custom-elements/chat-video.ts b/client/ui/custom-elements/chat-video.ts index 28b996a..2710d49 100644 --- a/client/ui/custom-elements/chat-video.ts +++ b/client/ui/custom-elements/chat-video.ts @@ -7,6 +7,8 @@ customElements.define('chat-video', class extends HTMLElement { connectedCallback() { this.style.display = 'block' const e = new DOMParser().parseFromString(``, 'text/html').body.firstChild as HTMLVideoElement + e.style.maxWidth = "400px" + e.style.maxHeight = "300px" e.style.width = "100%" e.style.height = "100%" e.style.borderRadius = "var(--mdui-shape-corner-medium)"