Skip to content

Commit c5f9e68

Browse files
committed
fix: サイドナビゲーションと目次の位置を修正
1 parent 8d194aa commit c5f9e68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/src/components/ui/common/SideNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const SideNavigation = ({
1414
currentPath,
1515
}: SideNavigationProps) => {
1616
return (
17-
<nav class="folding flex-none w-full md:w-64 lg:w-72 bg-white border border-neutral-200/60 rounded-md mr-3.5 sticky top-0 h-screen overflow-auto px-3.5 py-3">
17+
<nav class="folding flex-none w-full bg-white border border-neutral-200/60 rounded-md sticky top-[60px] mt-4 mb-8 h-[calc(100vh-60px-1rem)] overflow-auto px-3.5 py-3">
1818
<SiteTitle />
1919
<ul class="space-y-1 text-xs text-neutral-700">
2020
{docs &&

website/src/components/ui/common/TableOfContents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const TableOfContents = ({ outline }: TableOfContentsProps) => {
1212
return (
1313
<nav
1414
id="page-overview"
15-
class="flex-none w-full md:w-60 lg:w-72 mt-6 mb-8 px-3.5 py-3 border border-neutral-200/60 rounded-md bg-white sticky top-0 h-screen overflow-auto"
15+
class="flex-none w-full px-3.5 py-3 border border-neutral-200/60 rounded-md bg-white sticky top-[60px] mt-4 mb-8 h-[calc(100vh-60px-1rem)] overflow-auto"
1616
>
1717
<strong class="block mb-2 text-xs text-neutral-500 font-semibold tracking-wide">
1818
目次

0 commit comments

Comments
 (0)