Skip to content

Commit

Permalink
fix: links within Section
Browse files Browse the repository at this point in the history
  • Loading branch information
wodeni committed Dec 29, 2024
1 parent d3cfded commit 3bfd5e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Academic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ export const Section = ({
const id = header.toLowerCase();
// NOTE: SAFARI BUG: without top-0 and left-0, the rect will be shifted down.
return (
<HashLink smooth to={`${location.pathname}#${id}`}>
<div id={id} className="mt-4 md:mt-8">
<div id={id} className="mt-4 md:mt-8">
<HashLink smooth to={`${location.pathname}#${id}`}>
<span className="group font-bold text-3xl tracking-tight curosr-pointer relative ">
<svg
height={30}
Expand All @@ -327,9 +327,9 @@ export const Section = ({
{header}
</span>
</span>
{children}
</div>
</HashLink>
</HashLink>
{children}
</div>
);
};
export const Footer = () => (
Expand Down

0 comments on commit 3bfd5e8

Please sign in to comment.