Skip to content

In grid view, file type icons are too big compared to image previews #11902

Description

@jancborchardt

In the new grid view, the filetype icons look unelegantly large compared to the image previews (This is actually also the case in the Android app which uses the same previews & folder icons cc @tobiasKaminsky @AndyScherzinger)
file type icons too big in comparison to normal pictures

In the list view it’s fine, although it would not be bad for the preview images to be bigger:
thumbnails in list view are fine

How can we reduce the size of the filetype icons / make the image previews larger? @rullzer @nextcloud/designers

Activity

  1. added this to the Nextcloud 15 milestone on Oct 18, 2018
  2. nextcloud-bot commented on Oct 18, 2018

    @nextcloud-bot
    Member

    GitMate.io thinks possibly related issues are #8241 (image), #11573 ([WIP] Files grid view), #11050 ([WIP] Grid view for files), #3393 (Preview generator fails on big jpg files), and #11863 (Broken images stops preview generation).

  3. juliusknorr commented on Oct 18, 2018

    @juliusknorr
    Member

    Should easily doable just with some CSS:

    [data-has-preview='false'] .thumbnail {
    	background-size:50% !important;
    }
    
  4. tobiasKaminsky commented on Oct 18, 2018

    @tobiasKaminsky
    Member

    What kind of ratio do you think is good? 50% as Julius set?
    I can have a look if this is possible on Android

  5. juliusknorr commented on Oct 18, 2018

    @juliusknorr
    Member

    I think 50% is already a bit to small, 75% looks good to me. Also I would actually only apply this to the grid view.

  6. jancborchardt commented on Oct 18, 2018

    @jancborchardt
    MemberAuthor

    Sounds good to me @juliushaertl, thanks for the piece of code! :) I'll play around with the values a bit tomorrow, or do you already want to submit a pull request with 75% and we can discuss there?

  7. tobiasKaminsky commented on Oct 19, 2018

    @tobiasKaminsky
    Member

    2018-10-19-083302 2018-10-19-083440

    I am shameless posting an android screenshot here…
    As you can see, I only resized the folder, but not generic mimetypes.
    How do you do this on webUI?

  8. jancborchardt commented on Oct 19, 2018

    @jancborchardt
    MemberAuthor

    @tobiasKaminsky nice, already looks much better! It's really visible how the folder icon size looks nicer in comparison to the rest.

    • The other filetype icons also need to be smaller
    • The text below can be moved up a bit (towards the filetype icon)
    • Text size is also a bit large maybe? Is it the same as the file name in list view?

    (And it's absolutely fine posting the Android screenshots here :) It's an issue we have cross-platform and wr should solve it generally. Actually probably similar for the iOS grid view, cc @marinofaggiana)

  9. marinofaggiana commented on Oct 23, 2018

    @marinofaggiana
    Member

    ... continue here :

    @jancborchardt

    schermata 2018-10-23 alle 15 42 00

    schermata 2018-10-23 alle 15 44 53

  10. tobiasKaminsky commented on Oct 24, 2018

    @tobiasKaminsky
    Member

    In general, I am not sure if text/filename in grid view is really useful.
    According to all screenshots in this issue (Independent from platform), you can always read only ~5 chars at beginning and a few on the end and this does not help to distinguish:

    • on first one multiple "Screen…"
    • on android multiple nextcl…apk

    Unfortunately I do not have a better idea.
    Maybe putting "…" to the end, as you can see the mimetype through icons, but in case of last iOS image, scan 16/43 would then be trimmed…

  11. marinofaggiana commented on Oct 24, 2018

    @marinofaggiana
    Member

    New grid with more Width for item, generally 3 item for line ... now the filename has more meaning

    @jancborchardt margin left and right now are 5 px (?) or 0 ?

    schermata 2018-10-24 alle 08 53 06

  12. 47 remaining items

  13. added this to the Nextcloud 21 milestone on Oct 3, 2020
  14. removed this from the Nextcloud 23 milestone on Nov 30, 2021
  15. added
    4. to releaseReady to be released and/or waiting for tests to finish
    and removed
    1. to developAccepted and waiting to be taken care of
    on Oct 20, 2023
  16. added this to the Nextcloud 28 milestone on Oct 20, 2023
  17. skjnldsv commented on Oct 20, 2023

    @skjnldsv
    Member

    image
    Fixed 28. Much more elegant now

  18. tobiasKaminsky commented on Oct 26, 2023

    @tobiasKaminsky
    Member

    I cannot spot any difference? 😇
    @jancborchardt as this is also interesting for Android, how small shall e.g. the folder icon be?

  19. jancborchardt commented on Oct 26, 2023

    @jancborchardt
    MemberAuthor

    Might also be the general spacing that makes it look much better. Nice :)

    @tobiasKaminsky I just checked Android and the sizing of the icons compared to the previews seems fine to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions