Skip to content

Commit

Permalink
スタンプ画像を選択するときにSVGを選択できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
nokhnaton committed Oct 24, 2024
1 parent 4d3788f commit 786a352
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 786a352

Please sign in to comment.