diff --git a/src/components/layout/header/internal/HeaderActionButton.tsx b/src/components/layout/header/internal/HeaderActionButton.tsx index d18d5ced9e..519c8a3d49 100644 --- a/src/components/layout/header/internal/HeaderActionButton.tsx +++ b/src/components/layout/header/internal/HeaderActionButton.tsx @@ -3,15 +3,17 @@ import clsx from 'clsx' import type { JSX } from 'react' export const HeaderActionButton = forwardRef< - HTMLButtonElement, - JSX.IntrinsicElements['button'] + HTMLDivElement, + JSX.IntrinsicElements['div'] >(({ children, ...rest }, ref) => { return ( - + ) }) diff --git a/src/components/modules/post/PostMetaBar.tsx b/src/components/modules/post/PostMetaBar.tsx index 4f927af353..e6bbc11e67 100644 --- a/src/components/modules/post/PostMetaBar.tsx +++ b/src/components/modules/post/PostMetaBar.tsx @@ -42,19 +42,21 @@ export const PostMetaBar: Component<{ )} - {!!meta.modified && isClient ? ( - - 编辑于 - - ) : ( - (已编辑) - )} + {meta.modified ? ( + isClient ? ( + + 编辑于 + + ) : ( + (已编辑) + ) + ) : null} {!!meta.category && ( diff --git a/src/styles/clerk.css b/src/styles/clerk.css index 2b6cb33260..cf54159578 100644 --- a/src/styles/clerk.css +++ b/src/styles/clerk.css @@ -11,9 +11,11 @@ .cl-cardBox { @apply overflow-visible; } - +.cl-socialButtons { + @apply flex flex-wrap items-center justify-center; +} .cl-socialButtonsIconButton { - @apply aspect-square rounded-md bg-accent/5 p-3; + @apply box-content flex aspect-square h-5 min-h-0 w-5 items-center justify-center rounded-md bg-accent/5 p-3; } .cl-footer { @apply hidden;