fix(ui): avatar image performance · Issue #306 · AnswerOverflow/AnswerOverflow · GitHub
Skip to content

fix(ui): avatar image performance #306

Description

@JoltCode

What is this bug report for?

ui

Issue description

Within the hero section on the home page, the avatar's in the discord messages are causing a significant performance decrease, we should switch to next/image

Code sample

<Avatar>
  <AvatarImage alt={props.alt} src={props.src} />
  <AvatarFallback>
    {props.alt.split(' ').map((word) => word.at(0)?.toUpperCase())}
  </AvatarFallback>
</Avatar>

Operating system

N/A

Priority this issue should have

Medium (should be fixed soon)

Extra

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions