Skip to content

Table with left or right alignment and width != 100% makes the next paragraphs displayed on the side of the table #2202

Open
@XavierFigari

Description

@XavierFigari

Description

Steps to reproduce :

  • insert a table in a text note,
  • set the table width to someting else than 100%,
  • set table alignment left (or right), (it changes the css to float:left).

This causes the next paragraphs to be displayed on the right side of the table, instead of below it.

Possible solutions to avoid that :

  • add a clear: style to the following paragraph,
  • instead of a float: left directive on the table, the margin: 0.9em auto directive (defined in the .ck-content .table css selector in ckeditor-content.css) should be followed by a margin-left: 0; or margin-right: 0; directive when the user chooses left or right align in the table properties.

Image

TriliumNext Version

0.94.1

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Fedora 42

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamIssues related to a third-party library not under our control

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions