Skip to content

Incomplete size in list and details view (PR 1209) #1381

Closed

Description

@jesmrec

PR: #1209

In list view, uploads view and details view, the size of the file is shown without decimals. In server side is shown with at least one decimal when the size is greater than 1MB. For example, these two files:

Server:
343 KB (any decimal)
1,4 MB (one decimal when size > 1MB)

Mobile device:
343 KB (any decimal, right)
1 MB (any decimal, should be shown the first one, as in server side)

Activity

  1. davivel commented on Dec 23, 2015

    @davivel
    Contributor

    @AndyScherzinger , that's a gift for you ;)

  2. AndyScherzinger commented on Dec 24, 2015

    @AndyScherzinger
    Contributor

    Thanks :) Looping in @jancborchardt since this is contrary to what has been specified for mobile!

  3. AndyScherzinger commented on Dec 24, 2015

    @AndyScherzinger
    Contributor

    I can fix or let's say change this but I would like to have Jan's Feedback first :)

  4. jancborchardt commented on Dec 28, 2015

    @jancborchardt
    Contributor

    Sorry for any confusion! :) Should be like on the server.

  5. AndyScherzinger commented on Dec 28, 2015

    @AndyScherzinger
    Contributor

    Do we have a specification for that or the server side code snippet to port, just to make sure that it will behave the exact same way.

  6. AndyScherzinger commented on Dec 28, 2015

    @AndyScherzinger
    Contributor

    Code reference for the change that has been made which caused this: 607fb6f#diff-36e882c1d5231f769f0209395ecf63c4R58
    the two lines basically. So the question is does it stand correct to have two decimals for peta byte and up? If so I can simply change the MB value in the digits array to 1 instead of zero and we are all set :)

    Would that be fine with you @davivel and @jancborchardt ?

  7. added a commit that references this issue on Dec 28, 2015
  8. AndyScherzinger commented on Dec 28, 2015

    @AndyScherzinger
    Contributor

    The fix has been pushed to the material_buttons branch 👍

  9. jancborchardt commented on Dec 28, 2015

    @jancborchardt
    Contributor

    @PVince81 do we have any spec here, or where is the relevant code of the server?

  10. jesmrec commented on Dec 29, 2015

    @jesmrec
    MemberAuthor

    Fixed!

  11. AndyScherzinger commented on Dec 29, 2015

    @AndyScherzinger
    Contributor

    @jesmrec yes - for mega byte. To make sure it is behaving the same way for peta bytes and up we need further info from @PVince81 and @jancborchardt - In case we needs to check it for peta bytes and up 😁

  12. added this to the milestone on Dec 29, 2015
  13. AndyScherzinger commented on Dec 29, 2015

    @AndyScherzinger
    Contributor

    All changes up to now have been merged to master and thus I label the issue for release 1.9.1 :)

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

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions