Skip to content

Commit 0ed5f6f

Browse files
JohnMcLearclaude
andauthored
ui(installer): centre the one-liner box and add vertical breathing room (#367)
The `.max-w-xl` quick-install container sat flush-left against the hero copy with only `mt-4` above it, so on wider viewports it hugged the left gutter and crowded the subhead. Add `mx-auto` to centre it within the `.wrap`, `my-8` to give it clear vertical separation from the paragraph above and the demo gif below, and `p-2` to pad the tab/command/caption stack away from the border. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c2d4c98 commit 0ed5f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/InstallOneLiner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const InstallOneLiner = () => {
3838
}
3939
};
4040

41-
return <div className="mt-4 rounded border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 overflow-hidden max-w-xl">
41+
return <div className="my-8 mx-auto p-2 rounded border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 overflow-hidden max-w-xl">
4242
<div className="flex text-sm">
4343
{(Object.keys(ONE_LINERS) as OS[]).map((key) => {
4444
const active = os === key;

0 commit comments

Comments
 (0)