Skip to content

Commit

Permalink
fix on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslaw-weber committed May 17, 2024
1 parent 67ffa1b commit c7ba361
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const Navbar = () => {
<div className="w-full bg-base-100 flex-shrink ">
<div className="navbar mx-auto bg-primary text-primary-content shadow">
<div className="flex-1">
<Link href="/" className="btn btn-ghost normal-case font-display text-xl">
algo-lens: see algorithms in action!
</Link>
<Link href="/" className="btn btn-ghost normal-case font-display text-xl">
<span className="hidden sm:inline">algo-lens: see algorithms in action!</span>
<span className="inline sm:hidden">algo-lens</span>
</Link>

</div>
<div className="flex-none">
<ul className="menu menu-horizontal p-0">
Expand Down
3 changes: 2 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function MyApp({ Component, pageProps }: AppProps) {
document.documentElement.setAttribute("data-theme", theme);
});
return (
<div className="min-h-screen w-full font-sans flex flex-col bg-base-100 items-center">
<div className="min-h-screen overflow-x-hidden w-full font-sans flex flex-col bg-base-100 items-center">
<Head>
<title>Algo-Lens: Algorithm Visualization Tool</title>
<meta
Expand All @@ -25,6 +25,7 @@ function MyApp({ Component, pageProps }: AppProps) {
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
</Head>

<Navbar />
<Component {...pageProps} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Home: NextPage = () => {
}, []);

return (
<div className="flex-grow flex w-full">
<div className="flex-grow flex w-full ">


<main className="lg:mx-12 w-full mx-auto">
Expand Down

0 comments on commit c7ba361

Please sign in to comment.