Minor visual glitch with file icon in comments #13626

Closed
opened 2025-11-02 10:48:39 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @KazzmanK on GitHub (Oct 22, 2024).

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

Originally created by @KazzmanK on GitHub (Oct 22, 2024). ### 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](https://github.com/user-attachments/assets/f0b40caa-2b09-44d9-8ad3-937d9a4fb8c4) View mode ![image](https://github.com/user-attachments/assets/f4db1280-3a53-471f-a53f-d71ae1a1330b) ### Gitea Version 1.22.3 ### Can you reproduce the bug on the Gitea demo site? No ### Operating System _No response_ ### Browser Version 120
GiteaMirror added the topic/uitype/bug labels 2025-11-02 10:48:39 -06:00
Author
Owner

@lunny commented on GitHub (Oct 22, 2024):

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

@lunny commented on GitHub (Oct 22, 2024): Can you reproduce this on demo site? It maybe related to your configuration.
Author
Owner

@yp05327 commented on GitHub (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 commented on GitHub (Oct 22, 2024): I can reproduce it. The first time you uploaded it, src is empty. ![image](https://github.com/user-attachments/assets/94c8e9a2-219d-4134-b7c7-7d62c4781216) ![image](https://github.com/user-attachments/assets/c5dee026-22ee-475f-ad84-668afade44da) Then save it and edit again, the image src is the attachment ![image](https://github.com/user-attachments/assets/93dc43d1-386b-47ff-9a8b-abbf57cfb381)
Author
Owner

@lunny commented on GitHub (Oct 22, 2024):

OK. When uploading a non-image file?

@lunny commented on GitHub (Oct 22, 2024): OK. When uploading a non-image file?
Author
Owner

@yp05327 commented on GitHub (Oct 22, 2024):

Yes, if it is a image, it works.

@yp05327 commented on GitHub (Oct 22, 2024): Yes, if it is a image, it works.
Author
Owner

@yp05327 commented on GitHub (Oct 22, 2024):

Comes from:
image

Maybe we need to add a file extension check here.

@yp05327 commented on GitHub (Oct 22, 2024): Comes from: ![image](https://github.com/user-attachments/assets/fb041c19-fda9-4c8f-aec2-6dd9d1e82d5c) Maybe we need to add a file extension check here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13626