Skip to content

Commit

Permalink
fix: add Arabic font support and SVG upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 30, 2024
1 parent 03774f5 commit c628caf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/handlers/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
4 changes: 2 additions & 2 deletions public/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const Header = () => {
<HStack className="c-menu shadow p-4 w-full">
<div className="container">
<HStack justify="between">
<a href="/" className="flex flex-x flex-items-center flex--spacing-2 h-9">
<TenantLogo size={100} />
<a href="/" className="flex flex-x flex-items-center flex--spacing-2">
<TenantLogo size={1000} />
<h1 className="text-header">{fider.session.tenant.name}</h1>
</a>
{fider.session.isAuthenticated && (
Expand Down
4 changes: 2 additions & 2 deletions public/components/common/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <img className={`c-avatar ${size}`} alt={props.user.name} src={`${props.user.avatarURL}?size=50`} />
const size = props.size === "small" ? "h-6 w-6" : "h-9 w-9"
return <img className={`c-avatar ${size}`} alt={props.user.name} src={`${props.user.avatarURL}?size=100`} />
}
2 changes: 1 addition & 1 deletion public/components/common/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c628caf

Please sign in to comment.