Size a component by its slot
Default
Rule. Size a component by the width of its slot, not by the width of the window.
Why. A card in a narrow side pane is narrow, even in a wide window.
- Use the window class for the shell and the panes.
- Use the slot width for cards, rows, and charts.
- Test each component in the narrowest slot that it can fill.
Figure. The narrow card shows a title. The wide card adds a detail line.