Avatar image distorted

Issue #607 closed
Jose Rivas created an issue

Avatar image distorted in moodle/mod/assign/view.php?id=xxxxx&action=grading&lang=en

column submission comments, open comments

Comments (9)

  1. Yan Koslovsky

    Hi, the width atribute of this image is set to 20px:

    .comment-message .picture { width: 20px; float: left; }

    This is causing the distortion, height is inherit from ".userpicture" wich has a value of "25px !important;"

    I just tested adding this on custom CSS:

    .comment-message .picture { width: inherit; }

    this makes image proportional again in 25x25 size

  2. Info 3bits

    And could you this image as avatar?

    avatar_test_100x100.png

    Adaptable display the avatar rounded so you should see a circle. If there is some distortion then the circle will be displayed distorted.

    For the moment can't replicate it and looks totally round.

  3. Yan Koslovsky

    comments_block.jpg

    Hi, distortion only occurs on block comments (Adaptable), tested with Clean too, there this image is set to 16x16 px (perfectly round)

    I believe the cause is an "!important" height attribute set from ".userpicture", this overwrites size attributes in ".comment-message .picture"

    Test: (Adaptable 13.1.1 - Moodle 3.2+ - browsers Firefox & Chrome)

  4. Info 3bits
    • changed status to open

    It is a bad coding issue in the block. It uses inline styles and also a css class from BS.

    We'll try to fix it.

  5. Log in to comment