1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 07:00:06 +00:00

feat: add gif support for logo and background image

This commit is contained in:
Elias Schneider
2025-04-18 17:31:04 +02:00
parent f0dce41fbc
commit 56a8b5d0c0
2 changed files with 3 additions and 1 deletions

View File

@@ -30,6 +30,8 @@ func GetImageMimeType(ext string) string {
return "image/svg+xml" return "image/svg+xml"
case "ico": case "ico":
return "image/x-icon" return "image/x-icon"
case "gif":
return "image/gif"
default: default:
return "" return ""
} }

View File

@@ -11,7 +11,7 @@
label, label,
image = $bindable(), image = $bindable(),
imageURL, imageURL,
accept = 'image/png, image/jpeg, image/svg+xml', accept = 'image/png, image/jpeg, image/svg+xml, image/gif',
forceColorScheme, forceColorScheme,
...restProps ...restProps
}: HTMLAttributes<HTMLDivElement> & { }: HTMLAttributes<HTMLDivElement> & {