diff --git a/app/handlers/images.go b/app/handlers/images.go index f34ab8060..63e7a9d45 100644 --- a/app/handlers/images.go +++ b/app/handlers/images.go @@ -43,7 +43,7 @@ func LetterAvatar() web.HandlerFunc { log.Error(c, err) return c.BadRequest(web.Map{}) } - size = between(size, 50, 1000) + size = between(size, 50, 200) extractedLetter := letteravatar.Extract(decodedName) log.Debugf(c, "Generating letter avatar. Name: @{Name}, Letter: @{Letter}", dto.Props{ diff --git a/public/components/Header.tsx b/public/components/Header.tsx index 65e7791bf..338a71d23 100644 --- a/public/components/Header.tsx +++ b/public/components/Header.tsx @@ -21,8 +21,8 @@ export const Header = () => {
- - + +

{fider.session.tenant.name}

{fider.session.isAuthenticated && ( diff --git a/public/components/common/Avatar.tsx b/public/components/common/Avatar.tsx index 7475b579c..2ff12e8a8 100644 --- a/public/components/common/Avatar.tsx +++ b/public/components/common/Avatar.tsx @@ -13,6 +13,6 @@ interface AvatarProps { } export const Avatar = (props: AvatarProps) => { - const size = props.size === "small" ? "h-6 w-6" : "h-8 w-8" - return {props.user.name} + const size = props.size === "small" ? "h-6 w-6" : "h-9 w-9" + return {props.user.name} } diff --git a/public/components/common/Logo.tsx b/public/components/common/Logo.tsx index 95a360de3..dff5f05c6 100644 --- a/public/components/common/Logo.tsx +++ b/public/components/common/Logo.tsx @@ -3,7 +3,7 @@ import { uploadedImageURL } from "@fider/services" import { useFider } from "@fider/hooks" import { Tenant } from "@fider/models" -type Size = 24 | 50 | 100 | 200 +type Size = 24 | 50 | 100 | 200 | 1000 interface TenantLogoProps { size: Size