Commit d8d88c25 authored by Johnny's avatar Johnny

fix: creator view

parent f2e27c16
...@@ -145,7 +145,7 @@ const MemoView: React.FC<Props> = observer((props: Props) => { ...@@ -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) => { ...@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment