Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Repository page avatar image disproportionately smaller than title on small screens #3281

Closed
nickytonline opened this issue Apr 30, 2024 · 3 comments
Assignees
Labels
core team work Work that the OpenSauced core team takes on repo-pages

Comments

@nickytonline
Copy link
Member

The avatar for a repository page is really small compared to the title on a small screen. Here it is on my iPhone 13

image

@nickytonline nickytonline added core team work Work that the OpenSauced core team takes on repo-pages labels Apr 30, 2024
Copy link

Thanks for the issue, our team will look into it as soon as possible! If you would like to work on this issue, please wait for us to decide if it's ready. The issue will be ready to work on once we remove the "needs triage" label.

To claim an issue that does not have the "needs triage" label, please leave a comment that says ".take". If you have any questions, please reach out to us on Discord or follow up on the issue itself.

For full info on how to contribute, please check out our contributors guide.

@nickytonline
Copy link
Member Author

The avatar should be beside the tile on a smaller screen and sized to match the size of the title font size and the description below it.

It should probably be handle this way as well for any size screen. Right now it looks like the title and description are in one flex child and the avatar in another.

@nickytonline
Copy link
Member Author

Maybe something like this on a smaller screen.

            <header className="flex flex-col gap-4 pt-4">
              <div className="flex gap-2">
                <Avatar size={48} avatarURL={image} />
                <a
                  href={`https://github.com/${repoData.full_name}`}
                  target="_blank"
                  className="group hover:underline underline-offset-2 text-xl md:text-3xl font-bold flex gap-2 items-center"
                >
                  <h1>{repoData.full_name}</h1>
                  <HiOutlineExternalLink className="group-hover:text-sauced-orange text-lg lg:text-xl" />
                </a>
              </div>
              <p className="md:text-xl">{repoData.description}</p>
            </header>

CleanShot 2024-04-30 at 08 43 03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core team work Work that the OpenSauced core team takes on repo-pages
Projects
None yet
Development

No branches or pull requests

2 participants