Skip to content

Commit

Permalink
🐛 Fix CSS regression / FOUC
Browse files Browse the repository at this point in the history
  • Loading branch information
lmachens committed May 16, 2022
1 parent 5358a3b commit 2f3ec8f
Show file tree
Hide file tree
Showing 6 changed files with 306 additions and 580 deletions.
4 changes: 2 additions & 2 deletions components/AppLayout/AppLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppShell } from "@mantine/core";
import { AppShell, Container } from "@mantine/core";
import { ReactNode, useState } from "react";
import { CollectionLink } from "../../lib/staticProps";
import AppHeader from "../AppHeader/AppHeader";
Expand Down Expand Up @@ -26,7 +26,7 @@ const AppLayout = ({ collectionLinks, children }: Props) => {
<AppNavbar opened={openedNavbar} collectionLinks={collectionLinks} />
}
>
{children}
<Container>{children}</Container>
</AppShell>
);
};
Expand Down
7 changes: 2 additions & 5 deletions components/AppNavbar/AppNavbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Navbar, ScrollArea } from "@mantine/core";
import { HomeIcon } from "@modulz/radix-icons";
import { HomeIcon } from "@primer/octicons-react";
import { CollectionLink } from "../../lib/staticProps";
import NavbarCollectionLinks from "./NavbarCollectionLinks/NavbarCollectionLinks";
import NavbarMainLink from "./NavbarMainLink/NavbarMainLink";
Expand All @@ -23,10 +23,7 @@ const AppNavbar = ({ collectionLinks, opened }: Props) => {
width={{ sm: 200, lg: 300 }}
>
<ScrollArea style={{ height: "100vh" }} type="scroll">
<NavbarMainLink
href="/"
icon={<HomeIcon style={{ height: 18, width: 18 }} />}
>
<NavbarMainLink href="/" icon={<HomeIcon size={18} />}>
Home
</NavbarMainLink>
{links}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Text } from "@mantine/core";
import { ChevronDownIcon } from "@modulz/radix-icons";
import { ChevronDownIcon } from "@primer/octicons-react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useState } from "react";
Expand Down
Loading

0 comments on commit 2f3ec8f

Please sign in to comment.