Main and Side Columns
A wide main column next to a narrower side column for secondary details. The main column carries the primary task and the side column carries metadata that supports it. In product code this is SandboxLayout.Columns with two SandboxLayout.Column children. It suits any page with that shape, and it leans toward the Code Repository and pull request pages: a repository summary, or a pull request conversation beside its reviewers and labels.
Example: repository summary
A repository summary page inside the full application shell. The main column holds the file list and README; the 272px side column holds the summary, counts and languages.
Example: pull request conversation
A pull request conversation. The main column holds the merge status, the discussion and the comment box; the wider 334px side column holds reviewers, labels and assignees.
Anatomy
- Page header. Breadcrumb, title, description and underlined tabs, shared with the other page layouts.
- Main column. Takes the remaining width (
1fr) and holds the primary content: files, a conversation or a form. Give itmin-w-0so long content can shrink instead of overflowing. - Side column. A fixed width, 272px for a summary and 334px for a richer panel with reviewers and labels. It holds metadata and quick actions, never the primary task.
- Gap. Put
gap-cn-xlonSandboxLayout.Columnsfor the space between the columns.
Guidelines
- Use
columnWidths="1fr 272px"orcolumnWidths="minmax(calc(100% - 334px), 1fr) 334px"so only the main column flexes. - Keep the side column short. If it is longer than the main column, move some of it into the main column or into a tab.
- Order the side column by importance, and separate groups with a divider.
- For a layout whose columns resize, use resizable split.