Skip to content

fix: avoid bullet points overlapping with images#1096

Merged
giuliaghisini merged 1 commit intomainfrom
bug_74594_bullet_points_overlapping_w_image
Apr 7, 2026
Merged

fix: avoid bullet points overlapping with images#1096
giuliaghisini merged 1 commit intomainfrom
bug_74594_bullet_points_overlapping_w_image

Conversation

@sabrina-bongiovanni
Copy link
Copy Markdown

image

https://v3.io-comune.redturtle.it/amministrazione

When a block image with left alignment + a bullet list is added to a page, the bullet points overlap with the image

Added display: flow-root to avoid this problem.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/display#flow-root

The style has been applied to all <ul> elements inside #page-document (i.e. CT Page) or .richtext-blocks (blocks section in other CTs).
This style does not affect

    elements that are not near or affected by a float state in a problematic way, but it does solve the problems for those that are.

    The choice was to change this rather than add margin to the image as that would have not prevented problems of indentation with nested lists, and it would've also moved any "normal" text:
    image

    Result with display: flow-root
    image

@sabrina-bongiovanni sabrina-bongiovanni self-assigned this Apr 7, 2026
@sabrina-bongiovanni sabrina-bongiovanni added the bug Something isn't working label Apr 7, 2026
@giuliaghisini giuliaghisini merged commit 2f5209b into main Apr 7, 2026
6 checks passed
@giuliaghisini giuliaghisini deleted the bug_74594_bullet_points_overlapping_w_image branch April 7, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants