Okay
  Public Ticket #1873578
Distorted gallery images
Closed

Comments

  • Peter started the conversation

    Hi, 

    The large image "Klarglasflaskor" in the portfolio gallery (about in the middle of the page if you scroll down) gets distorted in all viewport widths except for the narrow one column/mobile width. The original image is 1000x1000 px so it should really be a perfect square. But, for example, in the wide desktop view it's 730x690 px, so its height gets squished and it does not look good, since our bottles' proportions get distorted.

    To me it seems like a bug with the portfolio gallery when setting an image to take up this larger size.

    Please help,

    Peter

  •  8,996
    Tahir replied

    Hey Again,

    Try turning off the Autoptimize plugin and check .

    Best


    ThemeNectar Support Team 

  • Peter replied

    Hi Tahir,

    I don't think that is the problem. I turned off the Autoptimize plugin anyway, but it did not do anything. When I inspect the image in Chrome's DevTools, I can see the img src and open the image in a new tab. In the new tab it is shown with the correct proportions.

    Kind regards,

    Peter

  •  8,996
    Tahir replied

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    .portfolio-items[data-col-num="elastic"] .col img, body .masonry.meta_overlaid .post-featured-img img, body .masonry.meta_overlaid .content-inner .whole-link {
        height: auto !important;
    }

    Thanks


    ThemeNectar Support Team 

  • Peter replied

    That extra CSS worked perfectly. Thank you for quick support!