Skip to content

Conversation

mschoettle
Copy link
Contributor

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).

attachments_divider

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:

attachments_bottom

…e file name and file size (see go-gitea#6500 and go-gitea#6089).

Signed-off-by: Matthias Schoettle <[email protected]>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 19, 2020
@zeripath zeripath added the type/enhancement An improvement of existing functionality label Apr 20, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 20, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 20, 2020
@zeripath
Copy link
Contributor

@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.

@mschoettle
Copy link
Contributor Author

@zeripath Sorry about that. I was wondering what this setting was useful for. I enabled "Allow edits from maintainers".

@lafriks lafriks added this to the 1.12.0 milestone Apr 20, 2020
@lafriks lafriks added the topic/ui Change the appearance of the Gitea UI label Apr 20, 2020
@guillep2k
Copy link
Member

ping lg-tm

@guillep2k guillep2k merged commit 33176e8 into go-gitea:master Apr 21, 2020
@guillep2k
Copy link
Member

I was waiting so much for this PR. Thanks! ❤️

ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* 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 <[email protected]>

* Fixes indentation.

Co-authored-by: zeripath <[email protected]>
zeripath added a commit to zeripath/gitea that referenced this pull request Oct 5, 2020
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 <[email protected]>
zeripath added a commit that referenced this pull request Oct 10, 2020
#11141 broke the appearance of dropzone attachments when editting
comments causing poorly updating lists.

This PR fixes this.

Fix #12583

Signed-off-by: Andrew Thornton [email protected]
zeripath added a commit to zeripath/gitea that referenced this pull request Oct 11, 2020
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 [email protected]
techknowlogick added a commit that referenced this pull request Oct 12, 2020
Backport #13036

#11141 broke the appearance of dropzone attachments when editting
comments causing poorly updating lists.

This PR fixes this.

Fix #12583

Signed-off-by: Andrew Thornton [email protected]

Co-authored-by: techknowlogick <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants