Allow a Stylekit "card" to be side-by-side with width=fit-content #1780
Labels
🖰 GUI
Related to GUI
🆘 Help wanted
Open to participation from the community
📈 Improvement
Improvement of a feature.
🟨 Priority: Medium
Not blocking but should be addressed
Description
Cards can have their width match the size of its content with #468, which is great for displaying metrics (among other things).
I'd like to position cards side-by-side, without needing to use a layout and explicitly defining the width of each element there.
Currently, I can use a layout and define the width:
Which produces:
I want to create this without defining a width anywhere.
Solution Proposed
Maybe allowing a layout column to "fit-content" ("fc") is a possible solution? I don't like the extra nesting especially if I'm only showing 2 cards, but it makes sense and I can also use layout.gap to add space between the cards.
Impact of Solution
Needs to work with taipy.gui.builder / tgb also.
Additional Context
No response
Acceptance Criteria
Code of Conduct
The text was updated successfully, but these errors were encountered: