Skip to content

Commit

Permalink
Merge pull request #4387 from traPtitech/fix/selectable_svg_in_stamp_…
Browse files Browse the repository at this point in the history
…editor

スタンプ画像を選択するときにSVGを選択できるように
  • Loading branch information
nokhnaton authored Nov 12, 2024
2 parents 7296377 + 786a352 commit 0ae714d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/Settings/StampTab/NewStamp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ import { useModalStore } from '/@/store/ui/modal'
const { pushModal } = useModalStore()
const acceptImageType = ['image/jpeg', 'image/png', 'image/gif'].join(',')
const acceptImageType = [
'image/jpeg',
'image/png',
'image/gif',
'image/svg+xml'
].join(',')
const { selectImage } = useFileSelect({ accept: acceptImageType }, files => {
if (!files[0]) return
pushModal({
Expand Down
7 changes: 6 additions & 1 deletion src/components/Settings/StampTab/StampContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ const emit = defineEmits<{
const { pushModal } = useModalStore()
const { execWithToast } = useExecWithToast()
const acceptImageType = ['image/jpeg', 'image/png', 'image/gif'].join(',')
const acceptImageType = [
'image/jpeg',
'image/png',
'image/gif',
'image/svg+xml'
].join(',')
const close = () => {
emit('close')
Expand Down

0 comments on commit 0ae714d

Please sign in to comment.