Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bug report) Table with left or right alignment and width != 100% makes the next paragraphs displayed on the side of the table #4751

Open
XavierFigari opened this issue May 1, 2024 · 0 comments

Comments

@XavierFigari
Copy link

XavierFigari commented May 1, 2024

Trilium Version

0.63.3

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Linux Mint 21.3

Description

When I insert a table in a text note, set the width to someting else than 100%, and set it to be aligned left (or right), it changes the css to float:left.
This causes the following paragraphs to be displayed on the side of the table, instead of below.
Possible solutions to 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.

Error logs

No response

@XavierFigari XavierFigari changed the title (Bug report or Feature request) Table alignment other than center causes surrounding text to be placed on the side of the table if table width is not 100% (Bug report or Feature request) Table alignment other than center causes next paragraphs to be placed on the side of the table if table width is not 100% May 1, 2024
@XavierFigari XavierFigari changed the title (Bug report or Feature request) Table alignment other than center causes next paragraphs to be placed on the side of the table if table width is not 100% (Bug report or Feature request) Table with left or right alignment and width != 100% makes the next paragraphs displayed on the side of the table May 1, 2024
@XavierFigari XavierFigari changed the title (Bug report or Feature request) Table with left or right alignment and width != 100% makes the next paragraphs displayed on the side of the table (Bug report) Table with left or right alignment and width != 100% makes the next paragraphs displayed on the side of the table May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant