mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
Make (pasted) tables adapt/automatically adjust to the page width. Columns: relative not absolute. #1355
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Wookbert on GitHub (Sep 12, 2019).
Describe the feature you'd like
After pasting (the raw content from) an Excel table with many columns I realized that BookStack doesn't adjust the table width (and its contained cells) to the white page width, but instead the table simply flows over the page border:
Instead a table always should have a maximum width (same as text on page), and any column added should always be relative to that table and the other column). Text size should be independently from the cell size adjustable (line break vs. small enough to fit), whereas the overall text size scales with the table size).
The final table should behave more like an image, which means it should adjust in size, like in this screenshot (where the table actually is an image, not HTML code):
I can imagine that this is a complex problem to solve. Perhaps there is a trick to not display an actual HTML table, but instead render a PNG from the inline created table on-the-fly and display that image. (Downside would be that the table’s content would not be directly copyable).
@Wookbert commented on GitHub (Sep 12, 2019):
Related: https://github.com/BookStackApp/BookStack/issues/1387