• Resolved Camille V

    (@socrapop)


    Dear support team ??

    This is an easy bug report / feature request (I provide my solution below ^^):

    I want to add photographs to my menu items, and the files are 2400px wide, so it destroys my layout in the administration. Even if I choose the custom menu size (400*350), the image is still shown in full size in the admin area.

    Screenshot here

    So it would be nice if the preview image was loaded in the chosen size, or you could simply add a css rule in the admin area :

    .menu-item-images .set-post-thumbnail img {
        max-width: 100%;
        height: auto;
    }

    Thank you for this plugin, it’s very nice ??
    Have a nice day,
    Camille

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @socrapop,

    Thanks for the solution provided. Just a doubt did you regenerate the thumbnails?

    Thread Starter Camille V

    (@socrapop)

    Yes I did, I thought the same thing as you before saying that. But even if I wouldn’t have, the image loaded in backend is in fullsize, independently from the size chosen in the select drop-down ??

    And as an extreme exemple, even if it showed the size chosen in the select box, if the user sets an image size of 800px (let’s say for retina screens, in a mega menu), the css above would be great too ??

    Have a nice day

    Plugin Author Rui Guerreiro

    (@takanakui)

    I see, thanks for the feedback.
    Will include this code in the next update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add max-width to images in administration’ is closed to new replies.