Archived topic
Container Icon + Text Align
5 replies · Started by nurban01 on January 14, 2021
Hi team,
I've been using a custom GenerateBlock for a summary section on my posts. I'm not sure what happened, but now my text no longer aligns properly when it goes onto the second line. I have a 15px left-padding and a 0.5em right icon padding in place. Any ideas?
Visual:https://imgur.com/a/jFysOyQ
Thanks!
Hi there,
Can you link us to the page in question? So we could check within the page source as to what may be causing the issue.
You can provide the site details on the private information text area. Thank you. :)
Updated the OP!
Updated the OP!
Thank you.
I've checked the section in question. There seems to be something unusual with the DOM structure of the Headline block. It's adding an extra span.gb-icon within the structure as shown here:
https://share.getcloudapp.com/OAuWDl6y
This isn't the default way GB Headline Block adds things. did the Headline block have any history of HTML editing? Let us know.
I see. For some reason after saving the post, I reloaded the page and every single one of those headline blocks needed "recovery". I only noticed the issue after clicking "Attempt Recovery".
I went through and manually deleted that extra section in the HTML and then went back to editing visually. Seemed to work but was a huge pain.
Any idea why the blocks needed recovery? Hoping to avoid this in the future.
Thanks for your help!
That's strange. We haven't had this issue reported before - what version of GenerateBlocks are you using?
Usually this would happen if you edit the HTML manually.
Any chance you can provide the steps for us to replicate the issue?