mirror of https://github.com/halo-dev/halo
feat: add supports for displaying jpeg icon in attachments list (#6956)
#### 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 后缀文件添加图标 ```pull/6964/head
parent
edfb230008
commit
65808c8c6f
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue