From 65808c8c6f3bbe4eb1805c897521618319404cff Mon Sep 17 00:00:00 2001 From: LuijpCN <139390536+luijp@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:26:01 +0800 Subject: [PATCH] feat: add supports for displaying jpeg icon in attachments list (#6956) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement #### What this PR does / why we need it: 在附件,列表模式中,为 jpeg 后缀文件添加图标。 #### Which issue(s) this PR fixes: Fixes # #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 为 jpeg 后缀文件添加图标 ``` --- ui/src/components/icon/AttachmentFileTypeIcon.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/components/icon/AttachmentFileTypeIcon.vue b/ui/src/components/icon/AttachmentFileTypeIcon.vue index a479676311..51ada6392b 100644 --- a/ui/src/components/icon/AttachmentFileTypeIcon.vue +++ b/ui/src/components/icon/AttachmentFileTypeIcon.vue @@ -35,6 +35,7 @@ import VscodeIconsFileTypeYaml from "~icons/vscode-icons/file-type-yaml"; const FileTypeIconsMap = { // image ".jpg": markRaw(VscodeIconsFileTypeImage), + ".jpeg": markRaw(VscodeIconsFileTypeImage), ".png": markRaw(VscodeIconsFileTypeImage), ".gif": markRaw(VscodeIconsFileTypeImage), ".webp": markRaw(VscodeIconsFileTypeImage),