Skip to content

Commit

Permalink
feat: add supports for displaying jpeg icon in attachments list (#6956)
Browse files Browse the repository at this point in the history
#### 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 后缀文件添加图标
```
  • Loading branch information
luijp authored Oct 27, 2024
1 parent edfb230 commit 65808c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/components/icon/AttachmentFileTypeIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 65808c8

Please sign in to comment.