Skip to content

Commit 8f471ff

Browse files
committed
fix: top-align empty organization view and scroll the full page
Replace the vertically centered grid with a top-aligned, page-scrolling layout so the new project form no longer jumps when switching project types and the scrollbar spans the whole pane.
1 parent 64fd6e1 commit 8f471ff

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

packages/insomnia/src/ui/components/panes/no-project-view.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@ interface Props {
1313
export const NoProjectView: FC<Props> = ({ storageRules }) => {
1414
const { credentials, providers } = useGitCredentials();
1515
return (
16-
<div className="m-auto grid w-[min(700px,100%)] grid-rows-[min-content_1fr_min-content] place-items-stretch items-stretch gap-4 overflow-hidden p-16 text-(--color-font)">
17-
<div>
18-
<p className="mb-3 text-3xl font-semibold">Welcome to your organization!</p>
19-
<Heading className="mb-3">Create a new project to get started</Heading>
16+
<div className="h-full w-full overflow-y-auto text-(--color-font)">
17+
<div className="mx-auto flex w-[min(700px,100%)] flex-col gap-4 p-16">
18+
<div>
19+
<p className="mb-3 text-3xl font-semibold">Welcome to your organization!</p>
20+
<Heading className="mb-3">Create a new project to get started</Heading>
21+
</div>
22+
<ProjectCreateForm
23+
storageRules={storageRules}
24+
defaultProjectName="My first project"
25+
credentials={credentials}
26+
providers={providers}
27+
/>
2028
</div>
21-
<ProjectCreateForm
22-
storageRules={storageRules}
23-
defaultProjectName="My first project"
24-
credentials={credentials}
25-
providers={providers}
26-
/>
2729
</div>
2830
);
2931
};

0 commit comments

Comments
 (0)