fix(app): dashboard cards keep the screen width with a long e-mail
The card grid had no explicit column below md: its implicit auto track took the cards' min-content, so the account e-mail never truncated and pushed the page sideways. One minmax(0,1fr) column; the e-mail wraps. e2e/shell/responsive.spec.ts sweeps 320-430 px and desktop (RESP-01).
This commit is contained in:
1 parent
dd5a23c39d
commit
a70166ea11
4 files changed
+179
-7
No files matched your search
@@ -87,8 +87,9 @@ function AccountCard() {
|
||||
<h2 className="font-serif text-xl">{t('dashboard.account.title')}</h2>
|
||||
<dl className="grid gap-2 text-sm">
|
||||
<div className="flex justify-between gap-4">
|
||||
<dt className="text-[var(--color-ink-muted)]">{t('dashboard.account.email')}</dt>
|
||||
<dd className="truncate">{user?.email}</dd>
|
||||
<dt className="shrink-0 text-[var(--color-ink-muted)]">{t('dashboard.account.email')}</dt>
|
||||
{/* An address longer than the card wraps: never cut, never wider than the screen. */}
|
||||
<dd className="min-w-0 text-right [overflow-wrap:anywhere]">{user?.email}</dd>
|
||||
</div>
|
||||
<div className="flex items-center justify-end gap-1.5 text-[var(--color-ink-muted)]">
|
||||
<Icon name={verified ? 'check' : 'alert'} size={16} />
|
||||
@@ -126,7 +127,8 @@ export default function DashboardRoute() {
|
||||
{t('dashboard.intro')}
|
||||
</p>
|
||||
</header>
|
||||
<div className="grid gap-4 md:grid-cols-2">
|
||||
{/* One explicit column below md: an implicit track would grow to the cards' content. */}
|
||||
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
|
||||
<ProfileCard missing={missing} />
|
||||
<ToolCard />
|
||||
<AccountCard />
|
||||
|
||||
Reference in new issue
Block a user