Skip to content

Commit

Permalink
fix: Explorer list overflows when the window height is not enough
Browse files Browse the repository at this point in the history
  • Loading branch information
NriotHrreion committed Aug 7, 2024
1 parent 72a2cfd commit 9430af2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/(pages)/explorer/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { PropsWithChildren } from "react";

import Navbar from "@/components/explorer/navbar";
import ExplorerNav from "@/components/explorer/explorer-nav";

export default function Layout({ children }: PropsWithChildren) {
return (
<div className="w-full h-full pb-10 flex flex-col items-center">
<Navbar />
<div className="w-full h-full pb-9 flex flex-col items-center">
<ExplorerNav />

<div className="w-[1000px] h-[79vh] flex gap-7">
<div className="w-[1000px] h-0 flex-grow flex gap-7">
{children}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { concatPath, getExtname, isValidPath } from "@/lib/utils";
import { emitter } from "@/lib/emitter";
import { useEmitter } from "@/hooks/useEmitter";

const Navbar: React.FC = () => {
const ExplorerNav: React.FC = () => {
const ferrum = useFerrum();
const explorer = useExplorer();
const router = useRouter();
Expand Down Expand Up @@ -239,4 +239,4 @@ const Navbar: React.FC = () => {
);
}

export default Navbar;
export default ExplorerNav;

0 comments on commit 9430af2

Please sign in to comment.