chore: collapse className to single line and adjust Author margin

This commit is contained in:
jamo.siu@gmail.com
2026-05-21 21:16:58 -05:00
parent a8ed9a957c
commit 54ecd30a98
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -114,10 +114,7 @@ export function Author({ className }: { className?: string }) {
return (
<a
href={author.email?.trim() ? `mailto:${author.email}` : undefined}
className={`flex items-center gap-2 my-6 p-1 rounded-full
border border-(--rp-c-divider) bg-(--rp-c-bg-soft)
no-underline transition-colors hover:bg-(--rp-c-bg-mute)
cursor-pointer select-none w-fit${className ? ` ${className}` : ""}`}>
className={`flex items-center gap-2 my-6 p-1 rounded-full border border-(--rp-c-divider) bg-(--rp-c-bg-soft) no-underline transition-colors hover:bg-(--rp-c-bg-mute) cursor-pointer select-none w-fit ${className ? `${className}` : ""}`}>
{src && <img src={src} alt={author.name} width={32} height={32} className="rounded-full" />}
<span className="text-sm text-(--rp-c-text-2) pr-2">{author.name}</span>
</a>
+1 -1
View File
@@ -10,7 +10,7 @@ function DocLayout(props: DocLayoutProps) {
{...props}
beforeOutline={
<>
<Author className="ml-4 md:ml-0" />
<Author className="mx-4 md:mx-0" />
{props.beforeOutline}
</>
}