Replies: 1 comment
-
@paw-lu, did you have any luck with this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When rich tables are filled with strings, it smartly adjusts the width to be the minimum needed to contain the elements.
Star Wars Movies ┏━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━┓ ┃ Released ┃ Title ┃ Box Office ┃ ┡━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━┩ │ Dec 20, 2019 │ Star Wars │ $952,110,690 │ └──────────────┴───────────┴──────────────┘
It seems that as soon as you add some rich objects—such as
rich.markdown.Markdown
—the table no longer has the automatic adjustement. Instead becomes as wide as possible, even when not needed.Star Wars Movies ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Released ┃ Title ┃ Box Office ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ Dec 20, 2019 │ Star Wars │ $952,110,690 │ └──────────────────────────────┴─────────────────────────────┴──────────────────────────────┘
Is there a simple way to keep the minimum width from above while using other Rich objects in the table?
Beta Was this translation helpful? Give feedback.
All reactions