Implemented Remove box-sizing for avatars?

Discussion in 'Resolved Suggestions' started by AlexT, Feb 12, 2017.

  1. AlexT

    AlexT Customer

    14
    8
    3
    Hi there. :)

    Any reason for using the border-box box-sizing when displaying avatars? It basically causes all avatars to be resized by the browser given the current layout. For example, medium avatars of 96x96 will be displayed at 90x90. This may or not may have a small negative effect on rendering speed; what's more, I fail to see why the box-sizing property is even there. :unsure:

    HTML:
    Copy Source
    .messageUserBlock .avatar img
    {
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }
     
    zastavra likes this.
  2. Steve

    Steve Designer

    1,828
    484
    83
    We'll check it out, though I can't recall doing anything recently where this has changed. It could be related to a particular message layout and some old code. I do know the message layout(s) property settings are on our revamp list though! :)
     
  3. Russ

    Russ Designer

    10,865
    2,578
    113
    Sorry I never followed up on this... just a heads up we're only using border-box now on size L for avatars. This is to avoid the post bit breaking and aligning up correctly.
     

Share This Page