Skip to content

Commit

Permalink
center directory empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Jan 7, 2024
1 parent ab53c15 commit fc1fabd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/screens/directory/datagraph/DatagraphIndexScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Empty } from "src/components/feed/common/PostRef/Empty";
import { Unready } from "src/components/site/Unready";
import { Heading1, Heading2 } from "src/theme/components/Heading/Index";

import { VStack } from "@/styled-system/jsx";
import { Center, VStack } from "@/styled-system/jsx";

import { Props, useDatagraphIndexScreen } from "./useDatagraphIndexScreen";

Expand All @@ -19,7 +19,11 @@ export function Client(props: Props) {
const { items, clusters, links } = data;

if (empty) {
return <Empty>This community knowledgebase is empty.</Empty>;
return (
<Center h="full">
<Empty>This community knowledgebase is empty.</Empty>
</Center>
);
}

return (
Expand Down

0 comments on commit fc1fabd

Please sign in to comment.