Skip to content

Commit 3bfd5e8

Browse files
committed
fix: links within Section
1 parent d3cfded commit 3bfd5e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Academic.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ export const Section = ({
301301
const id = header.toLowerCase();
302302
// NOTE: SAFARI BUG: without top-0 and left-0, the rect will be shifted down.
303303
return (
304-
<HashLink smooth to={`${location.pathname}#${id}`}>
305-
<div id={id} className="mt-4 md:mt-8">
304+
<div id={id} className="mt-4 md:mt-8">
305+
<HashLink smooth to={`${location.pathname}#${id}`}>
306306
<span className="group font-bold text-3xl tracking-tight curosr-pointer relative ">
307307
<svg
308308
height={30}
@@ -327,9 +327,9 @@ export const Section = ({
327327
{header}
328328
</span>
329329
</span>
330-
{children}
331-
</div>
332-
</HashLink>
330+
</HashLink>
331+
{children}
332+
</div>
333333
);
334334
};
335335
export const Footer = () => (

0 commit comments

Comments
 (0)