Skip to content

Issues with display: flex #426

@CallMeHein

Description

@CallMeHein

The spans that are created by the extension can mess with Flex layouts:

<div id="container" style="display: flex; flex-direction: row;">
  Text with<br>a break
</div>

This renders correctly as one block across two rows

When searching with the extension, the html ends up being the following (simplified):

<div id="container" style="display: flex; flex-direction: row;">
  <span>Text with</span><br><span>a break</span>
</div>

The individual parts of the text are now considered separate blocks and are affected by the flex layout -> they render in the same row because of flex-direction: row

The immediate solution could be to set display: contents on the created spans so they don't generate their own block and are unaffected by flex

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions