Skip to content

Minor visual glitch with file icon in comments #32316

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

Closed
KazzmanK opened this issue Oct 22, 2024 · 5 comments · Fixed by #32319
Closed

Minor visual glitch with file icon in comments #32316

KazzmanK opened this issue Oct 22, 2024 · 5 comments · Fixed by #32319
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Milestone

Comments

@KazzmanK
Copy link
Contributor

Description

If I have a post with file attached, while editing post attachment`s part have wrong file icon

After I exit edit mode icon becomes normal

Screenshots

Edit post mode
image

View mode
image

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

No

Operating System

No response

Browser Version

120

@KazzmanK KazzmanK added topic/ui Change the appearance of the Gitea UI type/bug labels Oct 22, 2024
@lunny
Copy link
Member

lunny commented Oct 22, 2024

Can you reproduce this on demo site? It maybe related to your configuration.

@lunny lunny added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Oct 22, 2024
@yp05327
Copy link
Contributor

yp05327 commented Oct 22, 2024

I can reproduce it.

The first time you uploaded it, src is empty.
image
image

Then save it and edit again, the image src is the attachment
image

@yp05327 yp05327 removed the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Oct 22, 2024
@lunny
Copy link
Member

lunny commented Oct 22, 2024

OK. When uploading a non-image file?

@yp05327
Copy link
Contributor

yp05327 commented Oct 22, 2024

Yes, if it is a image, it works.

@yp05327
Copy link
Contributor

yp05327 commented Oct 22, 2024

Comes from:
image

Maybe we need to add a file extension check here.

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
Development

Successfully merging a pull request may close this issue.

3 participants