Skip to content

Commit

Permalink
feat: user card styles
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Apr 27, 2024
1 parent cbb2496 commit 1b74e1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/renderer/src/components/feed-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ export function FeedColumn({
})
}
>
<div className="flex justify-center py-2 mx-3 my-2 rounded-xl font-medium cursor-pointer bg-stone-300 text-zinc-600">
<UserButton className="h-8" />
</div>
<UserButton className="h-12 mx-3 mb-2 mt-1" />
<div className="flex text-zinc-500 w-full justify-between text-xl my-2 px-5">
<TooltipProvider delayDuration={300}>
{items.map((item, index) => (
Expand Down
7 changes: 6 additions & 1 deletion src/renderer/src/components/user-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ export function UserButton({ className }: { className?: string }) {
}

return (
<div className={cn("h-20 flex items-center gap-2", className)}>
<div
className={cn(
"h-20 flex items-center gap-2 justify-center py-2 px-5 rounded-xl font-medium cursor-pointer bg-stone-300 text-zinc-600",
className,
)}
>
<Avatar className="w-auto h-full aspect-square">
<AvatarImage src={session?.user?.image || undefined} />
<AvatarFallback>{session?.user?.name?.slice(0, 2)}</AvatarFallback>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function Component() {

return (
<div className="h-screen w-full flex items-center justify-center flex-col gap-10">
<UserButton />
<UserButton className="text-2xl bg-stone-100 px-10 py-4" />
<h1 className="text-3xl font-bold">
Successfully connected to ReadOK Account
</h1>
Expand Down

0 comments on commit 1b74e1f

Please sign in to comment.