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

[Help Wanted] Update image thumbnails #4868

Closed
lfbrock opened this issue Dec 21, 2016 · 7 comments
Closed

[Help Wanted] Update image thumbnails #4868

lfbrock opened this issue Dec 21, 2016 · 7 comments
Labels

Comments

@lfbrock
Copy link
Contributor

lfbrock commented Dec 21, 2016

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide, specifically for machine setup and for developer workflow.


Details: Update image thumbnails to match the screenshot below.

You can find a PR that had a start on image thumbnails and has parts of the CSS needed to update them: #3874

plt-831

@khawerrind
Copy link
Contributor

@lfbrock i am interested in this task. Can you please tell me more about it.

  1. Only the image thumbnails needs to changed or other type of attachments as well?
  2. Clicking on image name should download the image or open the modal box for preview?
  3. Clicking on thumb should download the image or open the modal box for preview?

@lfbrock
Copy link
Contributor Author

lfbrock commented Dec 22, 2016

Hi @khawerrind, thanks for the interest!

To answer your questions:

  1. Other attachments should be changed as well
  2. Clicking on the image name should download the file
  3. Clicking on the thumbnail should open the preview

@khawerrind
Copy link
Contributor

@lfbrock Some other questions

  1. I can see that the sizes of the images are different in the attached screenshot that you have provided. Is there is any maximum width & height to fit the image within the block?
  2. In the current UI we show the file size as well. Is it not needed now to show the file size?
  3. What if the name is very long. Any maximum width & height for the name block after which we will show the ... if the name is bigger than certain characters?

@jwilander jwilander added the Tech/ReactJS Web app label Dec 28, 2016
@asaadmahmood
Copy link
Contributor

@khawerrind Sorry for the late reply.

  1. The minimum width should just depend on the image, it can even be 1px by 1px. But still the area should be clickable. The max width should be 100px, and the max height should be 60px.
  2. Yes, the file size will not be shown now.
  3. The name container should observe a max width of 100px as the image, it can only exceed to 2 lines, and no longer than that. So the max-height should not be of concern here.

@jwilander jwilander removed the Hackfest label Jan 9, 2017
@jasonblais
Copy link
Contributor

Hey @khawerrind, this PR had a start on the image thumbnails and has parts of the CSS needed to update the thumbnails: #3874

That might be helpful to get you started.

@khawerrind
Copy link
Contributor

@jasonblais here is the PR #5175

@it33
Copy link
Contributor

it33 commented Apr 17, 2017

The attempted PR was closed due to inactivity: #5175 (comment)

@lfbrock lfbrock closed this as completed Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants