Skip to content

Commit f5f6e7c

Browse files
committed
fix: truncate username overflow in dashboard header on mobile (#1762)
1 parent b0148d4 commit f5f6e7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/DashboardHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ export default function DashboardHeader() {
203203
{/* Left Section */}
204204
<div>
205205
<div className="flex flex-wrap items-center gap-2 mb-1">
206-
<div className="inline-flex items-center gap-1.5 rounded-full bg-[var(--accent)]/10 border border-[var(--accent)]/20 px-2.5 py-0.5 text-xs font-semibold text-[var(--accent)] transition-all duration-300">
206+
<div className="inline-flex items-center gap-1.5 rounded-full bg-[var(--accent)]/10 border border-[var(--accent)]/20 px-2.5 py-0.5 text-xs font-semibold text-[var(--accent)] transition-all duration-300 min-w-0 max-w-full">
207207
<span className="relative flex h-1.5 w-1.5">
208208
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-[var(--accent)] opacity-75"></span>
209209
<span className="relative inline-flex rounded-full h-1.5 w-1.5 bg-[var(--accent)]"></span>
210210
</span>
211-
<span>{greeting}, {displayName}!</span>
211+
<span className="truncate max-w-[120px] sm:max-w-[200px] inline-block align-bottom">{greeting}, {displayName}!</span>
212212
</div>
213213
{isNightOwl && (
214214
<div

0 commit comments

Comments
 (0)