Skip to content

Commit

Permalink
🐛 Fix header layout
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Dec 19, 2024
1 parent 5fcbb34 commit ce11af1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/profile/src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,16 @@ export function LayoutHeader({
)}
</div>

<div className="flex flex-col gap-1 overflow-hidden">
<div className="flex flex-col overflow-hidden">
{typeof title === "object" ? (
title
) : (
<div className="text-lg font-semibold truncate">{title}</div>
<div className="text-lg font-semibold truncate h-6 flex items-center">
{title}
</div>
)}
{description && typeof description === "string" ? (
<div className="text-xs text-muted-foreground truncate">
<div className="flex items-center text-xs text-muted-foreground truncate h-5">
{description}
</div>
) : (
Expand Down

0 comments on commit ce11af1

Please sign in to comment.