Skip to content
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

fix: improve downloadButton #1016

Merged
merged 2 commits into from
Sep 18, 2024
Merged

fix: improve downloadButton #1016

merged 2 commits into from
Sep 18, 2024

Conversation

spaenleh
Copy link
Member

@spaenleh spaenleh commented Sep 11, 2024

Before:
Screenshot 2024-09-12 at 15 36 41

Now:
Screenshot 2024-09-12 at 15 23 16

fix #920

@spaenleh spaenleh marked this pull request as draft September 11, 2024 12:37
Copy link

sonarcloud bot commented Sep 12, 2024

@spaenleh spaenleh self-assigned this Sep 12, 2024
@spaenleh spaenleh added bug 🪲 Something isn't working 👀 visual A UI related issue labels Sep 12, 2024
@spaenleh spaenleh marked this pull request as ready for review September 12, 2024 13:42
Copy link
Contributor

@ReidyT ReidyT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice, LGTM! I just have two questions:

  1. It is possible to display the extension even with the item name?
  2. It is possible to display a special icon depending on the file? (pdf icon, ppt icon, etc). I think this one can be in another issue.

@spaenleh
Copy link
Member Author

@ReidyT

  1. I was thinking about adding an indication for the format of the file (I can get it from the mimetype). But not as an extension, more like on the second line next to the size ? Or we could display the original file name, but there is no way for the user to change it, so it would not be a good design I think.
  2. Since for the moment we are showing this button for file formats we do not support, it would be difficult to display the right logo, but I can see a use where people want a supported element to be displayed as a downloadable element (audio already allows to donwload via the native element), but imagine you want to display the pdf as a button and not as an embed.

@ReidyT
Copy link
Contributor

ReidyT commented Sep 13, 2024

@ReidyT

  1. I was thinking about adding an indication for the format of the file (I can get it from the mimetype). But not as an extension, more like on the second line next to the size ? Or we could display the original file name, but there is no way for the user to change it, so it would not be a good design I think.
  2. Since for the moment we are showing this button for file formats we do not support, it would be difficult to display the right logo, but I can see a use where people want a supported element to be displayed as a downloadable element (audio already allows to donwload via the native element), but imagine you want to display the pdf as a button and not as an embed.
  1. Yeah I think it could be a good idea. On my point of view, it's always interesting to know the type of the file you'll download.
  2. I understand that it's not easy, it was more a potential improvement 😄.

@spaenleh spaenleh added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit 72c5c5f Sep 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working 👀 visual A UI related issue v5.0.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download button for file displays the original file name instead of the item name
2 participants