Get help from the marimo community

Updated 4 months ago

Controlling table column width

At a glance

The community member is looking for a way to control the width of table columns to avoid excessive white space around a selector. They tried using .center() but it was not the desired solution. Other community members responded that there is currently no way to do this, but one community member worked around the issue by using checkboxes, vstack, and hstack with "widths". However, the community member noted that the checkbox is now wide width, which they plan to look into further.

Is there a way to control table column width, so I don't end up with loads of white space around the selector? I want to keep the selector, but dont need to split 50/50 here when there's only one column:
Attachment
image.png
j
A
M
6 comments
I could use .center() to make the table smaller, but it's not really what I want
There's no way to do that currently
no worries, thanks for your quick reply
I worked around it using checkboxes and, vstack and hstack with "widths"
it does seem off that the checkbox is now wide width. i can look into that. everything else gets flexed relative to their own size
Add a reply
Sign up and join the conversation on Discord