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