1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-07 19:09:18 +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"
case "ico":
return "image/x-icon"
case "gif":
return "image/gif"
default:
return ""
}

View File

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