Viewing 11 replies - 1 through 11 (of 11 total)
  • Jarret

    (@jarretc)

    Are you able to replicate this? I’ve tried using both Chrome’s mobile view from the Inspector as well as manually decreasing the browser width and long captions on images stay within the browser window.

    Thread Starter derlynad

    (@derlynad)

    Yes, I am. I’ve done it right now. In preview mode. Both in Firefox and Chrome. Here’s a wide screenshot:

    https://drive.google.com/file/d/1muPonEPXcpBcnNQLWkHVs3GSNx7OX5l1/view?usp=sharing

    Maybe the issue is connected to a Russian locale? On Github there was an English version, and everything worked fine.

    By the way in inspector there is a code fragment:

    <figure id="attachment_9532" style="width: 1024px" class="wp-caption aligncenter">

    If I delete width parameter, everything works fine.

    Oh, by the way, I tested both themes (from repository and Github) on WordPress 4.7.15.

    Hi @derlynad! Is the site publicly available? If so, can you post a link to the page where you run into this issue?

    Jarret

    (@jarretc)

    Ah ok, I think I was able to replicate. For the image attachment, what do you have the Size set to under Display Settings when you edit the image in the editing dashboard?

    It appears that when setting the image size there, it adds inline styling to the attachment figure and this causes it to run off of the mobile viewport.

    Thread Starter derlynad

    (@derlynad)

    Not yet. I was testing it in a preview mode before launching to live :(.

    We were discussing this in the #core-themes Slack channel, and were able to recreate it in the Classic Editor with a aligncenter/alignfull image with a caption. We’ll take a look at fixing it in the first theme update. Thanks for posting it!

    Thread Starter derlynad

    (@derlynad)

    @jarretc Yes, indeed. But I didn’t use any editting in the dashboard. I just added media usual way, wrote caption text and that’s all. As @anlino mentioned above I’m still using Classic Editor, so it adds a following code fragment:

    [caption id="attachment_9523" align="aligncenter" width="1533"] with fixed width.

    @anlino Good to hear that! Waiting for the first update anxiously! But I still wonder, why there was no such issue in Twenty Twenty theme from Github?

    @derlynad There was a major restructure of the entry content in the theme shortly before release to alter the behaviour of nested blocks. It caused some bugs we’ll have to patch up post-release, but they’ll get sorted ??

    glaucod

    (@glaucod)

    I come here for the same reason. I use a lot of caption in my blog posts.

    By the way, the problem is not only the caption. The image itself is bigger than it should appear in mobile view (mobile only), and I cannot scroll the screen to see all of the image.

    I am very excited about this theme. But I have to quit for now. So… looking forward here for the update. ?? Good luck to the team.

    Running: Multisite; subfolders; blogs in both English and Portuguese; caption/image bug in both languages.

    glaucod

    (@glaucod)

    Jarret could help me in another topic.

    After following the suggested solution in https://core.trac.www.ads-software.com/ticket/48617 the problem is gone.

    I can also confirm this bug: inline width (matches Settings/Media Large Width) is applied to Figure element with caption. The inline width appears to only impact images inserted via the Classic Editor Plugin (Block Editor-inserted Images with caption display responsively).
    [Signature links removed by moderator per forum guidelines.]

    • This reply was modified 4 years, 11 months ago by James Huff. Reason: signature links removed
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Caption autosize issue’ is closed to new replies.