chore: collapse className to single line and adjust Author margin
This commit is contained in:
@@ -114,10 +114,7 @@ export function Author({ className }: { className?: string }) {
|
|||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
href={author.email?.trim() ? `mailto:${author.email}` : undefined}
|
href={author.email?.trim() ? `mailto:${author.email}` : undefined}
|
||||||
className={`flex items-center gap-2 my-6 p-1 rounded-full
|
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}` : ""}`}>
|
||||||
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" />}
|
{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>
|
<span className="text-sm text-(--rp-c-text-2) pr-2">{author.name}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ function DocLayout(props: DocLayoutProps) {
|
|||||||
{...props}
|
{...props}
|
||||||
beforeOutline={
|
beforeOutline={
|
||||||
<>
|
<>
|
||||||
<Author className="ml-4 md:ml-0" />
|
<Author className="mx-4 md:mx-0" />
|
||||||
{props.beforeOutline}
|
{props.beforeOutline}
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user