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:
@@ -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 ""
|
||||
}
|
||||
|
||||
@@ -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> & {
|
||||
|
||||
Reference in New Issue
Block a user