mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
fix(blog): headings should be aligned with the text, not shifted
This commit is contained in:
parent
5f3dfad988
commit
efa33f26ec
@ -26,14 +26,14 @@ const Heading = (
|
|||||||
): JSX.Element => {
|
): JSX.Element => {
|
||||||
const { children, id = "" } = props
|
const { children, id = "" } = props
|
||||||
return (
|
return (
|
||||||
<h2 {...props} className="group">
|
<h2 {...props}>
|
||||||
<Link
|
<Link href={`#${id}`} className="group relative hover:no-underline">
|
||||||
href={`#${id}`}
|
<FontAwesomeIcon
|
||||||
className="invisible !text-black group-hover:visible dark:!text-white"
|
className="absolute bottom-2 left-[-26px] mr-2 hidden size-4 !text-black group-hover:inline dark:!text-white"
|
||||||
>
|
icon={faLink}
|
||||||
<FontAwesomeIcon className="mr-2 inline size-4" icon={faLink} />
|
/>
|
||||||
|
{children}
|
||||||
</Link>
|
</Link>
|
||||||
{children}
|
|
||||||
</h2>
|
</h2>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user