fix: creator view
This commit is contained in:
parent
f2e27c16a1
commit
d8d88c2505
1 changed files with 3 additions and 3 deletions
|
|
@ -145,7 +145,7 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
|
||||||
{props.showCreator && creator ? (
|
{props.showCreator && creator ? (
|
||||||
<div className="w-full flex flex-row justify-start items-center">
|
<div className="w-full flex flex-row justify-start items-center">
|
||||||
<Link
|
<Link
|
||||||
className="w-auto hover:bg-accent hover:text-accent-foreground rounded-md p-1 transition-colors"
|
className="w-auto hover:opacity-80 rounded-md transition-colors"
|
||||||
to={`/u/${encodeURIComponent(creator.username)}`}
|
to={`/u/${encodeURIComponent(creator.username)}`}
|
||||||
viewTransition
|
viewTransition
|
||||||
>
|
>
|
||||||
|
|
@ -153,14 +153,14 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
|
||||||
</Link>
|
</Link>
|
||||||
<div className="w-full flex flex-col justify-center items-start">
|
<div className="w-full flex flex-col justify-center items-start">
|
||||||
<Link
|
<Link
|
||||||
className="w-full block leading-tight hover:bg-accent hover:text-accent-foreground rounded-md px-2 py-1 transition-colors truncate text-muted-foreground"
|
className="block leading-tight hover:opacity-80 rounded-md transition-colors truncate text-muted-foreground"
|
||||||
to={`/u/${encodeURIComponent(creator.username)}`}
|
to={`/u/${encodeURIComponent(creator.username)}`}
|
||||||
viewTransition
|
viewTransition
|
||||||
>
|
>
|
||||||
{creator.displayName || creator.username}
|
{creator.displayName || creator.username}
|
||||||
</Link>
|
</Link>
|
||||||
<div
|
<div
|
||||||
className="w-auto -mt-0.5 text-xs leading-tight text-muted-foreground select-none cursor-pointer hover:text-foreground transition-colors"
|
className="w-auto -mt-0.5 text-xs leading-tight text-muted-foreground select-none cursor-pointer hover:opacity-80 transition-colors"
|
||||||
onClick={handleGotoMemoDetailPage}
|
onClick={handleGotoMemoDetailPage}
|
||||||
>
|
>
|
||||||
{displayTime}
|
{displayTime}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue