Skip to content

Commit

Permalink
Improve sidebar height
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Lazarev <w@kich.dev>
  • Loading branch information
wKich committed Dec 20, 2023
1 parent e463959 commit a51a5b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion www/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IconExternal } from "./icons/external.tsx";

export function Footer(): JSX.Element {
return (
<footer class="grid grid-cols-3 text-center text-gray-500 tracking-wide bg-gray-100 py-8 gap-y-4 leading-8">
<footer class="grid grid-cols-3 text-center text-gray-500 tracking-wide bg-gray-100 py-8 gap-y-4 leading-8 justify-self-end">
<section class="flex flex-col gap-y-1">
<h1 class="text-sm uppercase font-bold text-blue-primary mb-4">About</h1>
<a class="text-gray-800" href="https://frontside.com">
Expand Down
2 changes: 1 addition & 1 deletion www/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Navburger } from "./navburger.tsx";

export function Header() {
return (
<header class="header w-full top-0 p-6 py-8 sticky tracking-wide z-10 max-w-screen-2xl m-auto">
<header class="header w-full top-0 p-6 py-8 sticky tracking-wide z-10 max-w-screen-2xl mx-auto">
<div class="flex items-center justify-between">
<div class="flex">
<a
Expand Down
4 changes: 2 additions & 2 deletions www/routes/app.html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export function* useAppHtml({
<link rel="stylesheet" href="/assets/prism-atom-one-dark.css" />
</noscript>
</head>
<body>
<body class="flex flex-col h-full">
<Header />
<main class="container max-w-screen-2xl m-auto">{children}</main>
<main class="container max-w-screen-2xl mx-auto mb-auto">{children}</main>
<Footer />
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion www/routes/docs-route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function docsRoute(docs: Docs): JSXHandler {
class="h-full w-full bg-gray-500 opacity-50"
/>
</aside>
<aside class="min-h-0 h-full overflow-auto hidden md:block pt-2 top-24 sticky h-screen">
<aside class="min-h-0 overflow-auto hidden md:block pt-2 top-24 sticky h-fit">
<nav class="pl-4">
{topics.map((topic) => (
<hgroup class="mb-2">
Expand Down

0 comments on commit a51a5b4

Please sign in to comment.