A profile card that switches to compact mode when either the sidebar container is narrow or the main content container is narrow. One comma-separated @container rule replaces two identical duplicate rule blocks.
Chrome 150+ — requires comma-separated @container queries. In older browsers the compact layout rule only fires from one of the two containers.
Drag the sliders to resize the sidebar and main area independently · watch the profile card react to either