Skip to content

Better presentation for files attached to issues #6089

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
2 of 7 tasks
ctrlaltca opened this issue Feb 15, 2019 · 8 comments
Closed
2 of 7 tasks

Better presentation for files attached to issues #6089

ctrlaltca opened this issue Feb 15, 2019 · 8 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality

Comments

@ctrlaltca
Copy link

  • Gitea version (or commit ref): 1.7.0
  • Git version: 2.14.5
  • Operating system: Slackware64 14.2
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant (the demo doesn't allow non-image uploads)
  • Log gist:

Description

Looking at the view rendering issue attachments, it seems that only images have a special handling.
If you attach files of other types (eg. pdf, txt, odt, ..) an icon with a tooltip containing the file name is rendered.
If an issue contains more than one attachment, it's quite hard to look for a specific attachment on desktop, and impossible on mobile without downloading them all.
It would be nice to have at least the file name printed (alone or alongside the icon), or even better to have an icon like the one already used for newly uploaded files

Screenshots

The screenshot is from an issue containing 2 pdf and 3 odt attachments. There's no way to discriminate between the files:
schermata 2019-02-15 alle 18 48 09
The icon used for newly uploaded files is way nicer:
schermata 2019-02-15 alle 18 49 52

@silverwind
Copy link
Member

Kind of related: I'd like to see the image preview in the footer removed for image attachments that are already displayed inline.

@lunny lunny added the type/enhancement An improvement of existing functionality label Feb 16, 2019
@stale
Copy link

stale bot commented Apr 17, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Apr 17, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Apr 17, 2019
@stale stale bot removed the issue/stale label Apr 17, 2019
@Mikanoshi
Copy link

Also... why is it so huge? :D Changed style to 24px, looks just fine.

@renevdzee
Copy link

What about making it look the same as release-attachments? like this:

image

This is what I changed to make it look like this (v1.9.3): patch.txt
I edited the templates in my custom/templates/ folder. I had to add a number of style-keywords because I didn't want to change any stylesheets (I don't know how to do this better in semantic-ui)

(would also fix issue #6501)

@guillep2k
Copy link
Member

@renevdzee I would really love that. And I've been wishing to hide the pictures already shown in the contents block (but that's more difficult to implement.... perhaps if the HTML parser adds a custom attribute to the <img> files? Can that be targeted somehow with CSS rules and match by URL?).

@guillep2k
Copy link
Member

@renevdzee care to make a PR?

@renevdzee
Copy link

@guillep2k about the PR, I think I shouldn't. But feel free to take any element from my patch to create a better implementation than I did. Maybe someone with more html/css knowledge can take a look at it.

mschoettle added a commit to mschoettle/gitea that referenced this issue Apr 19, 2020
…e file name and file size (see go-gitea#6500 and go-gitea#6089).

Signed-off-by: Matthias Schoettle <[email protected]>
guillep2k pushed a commit that referenced this issue Apr 21, 2020
* Improves representation of attachments in issues to a list showing the file name and file size (see #6500 and #6089).

Signed-off-by: Matthias Schoettle <[email protected]>

* Fixes indentation.

Co-authored-by: zeripath <[email protected]>
@lunny
Copy link
Member

lunny commented Apr 21, 2020

closed by #11141

@lunny lunny closed this as completed Apr 21, 2020
ydelafollye pushed a commit to ydelafollye/gitea that referenced this issue 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]>
@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
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

6 participants