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

Avatar and labels misalignment #22818

Closed
fsiddi opened this issue Feb 8, 2023 · 2 comments · Fixed by #22955
Closed

Avatar and labels misalignment #22818

fsiddi opened this issue Feb 8, 2023 · 2 comments · Fixed by #22955
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Milestone

Comments

@fsiddi
Copy link
Contributor

fsiddi commented Feb 8, 2023

Description

Up to Gitea 1.16, avatar and labels were aligned correctly. Since the refactoring of the Avatar component, styling breaks in element listings (e.g. users, organizations, etc).

This issue is easily fixed by:

  • replacing the vm class with image in the avatar component
  • or adding display: inline-block to the content div next to the avatar

This breaks in other places, such the landing page of a repo.

Screenshots

Gitea 1.16

image

Gitea 1.19

image

Gitea Version

1.19

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

Chrome 109.0.5414.119

@fsiddi fsiddi added type/bug topic/ui Change the appearance of the Gitea UI labels Feb 8, 2023
@lunny lunny added this to the 1.19.0 milestone Feb 9, 2023
@wolfogre
Copy link
Member

Related to #21145. I am not sure if we should add image back.

@silverwind Could you please take a look?

@wxiaoguang
Copy link
Contributor

Another avatar misalignment is here:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
4 participants