-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improve representation of attachments in issues #11141
Improve representation of attachments in issues #11141
Conversation
…e file name and file size (see go-gitea#6500 and go-gitea#6089). Signed-off-by: Matthias Schoettle <git@mattsch.com>
@mschoettle I think when you created this PR you must have denied project mergers the ability to update the branch in order to merge this. Please either re-allow project mergers to update the branch or update the branch - however, if you do not allow project mergers to update the branch there is a significant chance this will delay our ability to merge this PR. |
@zeripath Sorry about that. I was wondering what this setting was useful for. I enabled "Allow edits from maintainers". |
ping lg-tm |
I was waiting so much for this PR. Thanks! ❤️ |
* Improves representation of attachments in issues to a list showing the file name and file size (see go-gitea#6500 and go-gitea#6089). Signed-off-by: Matthias Schoettle <git@mattsch.com> * Fixes indentation. Co-authored-by: zeripath <art27@cantab.net>
go-gitea#11141 broke the appearance of dropzone attachments when editting comments causing poorly updating lists. This PR fixes this. Fix go-gitea#12573 Signed-off-by: Andrew Thornton <art27@cantab.net>
Backport go-gitea#13036 go-gitea#11141 broke the appearance of dropzone attachments when editting comments causing poorly updating lists. This PR fixes this. Fix go-gitea#12583 Signed-off-by: Andrew Thornton art27@cantab.net
Improves the representation of attachments in issues. Credit goes to @renevdzee (#6089 (comment)) for the initial patch.
This fixes issues #6501 and #6089.
The attachments are moved into the content and separated with a divider. Contrary to the original patch I removed the image thumbnail because it was in place of the file size. I tried to replace the icon on the left with the image thumbnail but it's quite big (35px vs. 16px).
What would be nice (is there any way to do that?) if the icon is mime-type related. Right now this is only supported for images.
Alternatively, the attachments could remain in the bottom as shown below. It requires a few CSS changes: