Logseq can't render long tables

I want to copy-paste a row from a Postgres database into Logseq. I can choose between different formats and I selected Markdown. Obsidian renders it perfectly:

but logseq doesn’t:

On the other hand, the Android app works fine.

This is the code of the table: "| inizio | fine | aaaa_id | sesh_id | note | bbbbb | ccccc | ddddd | eeeeee | fffff | gggggg | bb | fffffff | yyyyyyy | zzzzzzzz | luogo_id | logseq_id | hhhhhhh | iiiiiiiii | lllllllllll | mmmmmmmmm | uuuuu | dolore | ttttttttt | rrrrrrrrrrr | fffffffff | dddddddddd | eeeeeeee | fffffffff | mmmmmm | aaaaa | dddddd | rrrrrrrr | top | ffffff | ddddddd | sssssss | parla | id | in_logseq | ttttttt | ssssssss | eeeeeeeee | giorno_sett |
| ----------------------- | ----------------------- | ------- | ------- | ---- | ----- | ----- | ----- | ------ | ----- | ------ | — | ------- | ------- | -------- | -------- | --------- | ------- | --------- | ----------- | --------- | ----- | ------ | --------- | ----------- | --------- | ---------- | -------- | --------- | ------ | ----- | ------ | -------- | — | ------ | ------- | ------- | ----- | — | --------- | ------- | -------- | --------- | ----------- |
| 2024-07-27 04:59:00.000 | 2024-07-27 05:50:00.000 | 88 | 34 | | | | | true | 2 | | | | | | 1 | a2cbe66 | | | | true | | | 2 | | | | | | | | | | | | | | | 180 | | true | 1 | | SAB |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
"

PS. The demo version doesn’t have any scrollbar at all.

EDIT: I found a workaround, which isn’t optimal but better than nothing: putting the table code in a code block (choosing Markdown as language).

This is a CSS issue. By default, Logseq implements a 100% to the width property of a table. If you set it in custom.css to max-content, it will render properly. This of course affects all tables.

table {
  width: max-content !important;
}
1 Like

Thank you! Now the table renders fine, but the horizontal scrollbar is unusable because when I click on it to move it, logseq goes in edit mode and shows the raw code. So I can’t scroll.

Oh shouldn’t you be scrolling the Logseq window instead? Like the scrollbar at the bottom of the Logseq window?

there’s no scrollbar at the bottom of the window

Interesting. Renders differently on a Mac. I actually get the scrollbar for the entire Logseq window.

:thinking: Other than using a trackpad, I can’t think of a workaround at the moment. Will mull over it and let you know if I think of something.

1 Like

I found a workaround, which isn’t optimal (it’s a bit ugly) but better than nothing: putting the table code in a code block (choosing Markdown as language). Any other suggestions are welcomed! :slight_smile: