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:
bchanot committed 2026-10-27 19:37:54 +01:00
1 parent dd5a23c39d
commit a70166ea11
4 files changed
+179 -7

No files matched your search

+6 -2
View File
@@ -15,6 +15,8 @@ export interface ClientSeed {
kind?: 'person' | 'organization'
city?: string | null
phone?: string | null
email?: string | null
addressLine1?: string | null
}
export async function seedClient(
@@ -23,9 +25,11 @@ export async function seedClient(
seed: ClientSeed = {},
): Promise<string> {
const ws = await workspaceOf(account)
return sql(`insert into public.clients (workspace_id, kind, display_name, city, phone, create_request_id, create_request_digest)
return sql(`insert into public.clients (workspace_id, kind, display_name, city, phone, email, address_line1,
create_request_id, create_request_digest)
values (${literal(ws)}, ${literal(seed.kind ?? 'person')}, ${literal(displayName)}, ${literal(seed.city ?? null)},
${literal(seed.phone ?? null)}, gen_random_uuid(), '\\x00') returning id`)
${literal(seed.phone ?? null)}, ${literal(seed.email ?? null)}, ${literal(seed.addressLine1 ?? null)},
gen_random_uuid(), '\\x00') returning id`)
}
export async function seedAnimal(
+6 -2
View File
@@ -96,14 +96,18 @@ async function seedAvatar(ownerId: string): Promise<void> {
'image/webp', ${AVATAR_WEBP.length}, ${AVATAR_WEBP.length}, '${sha256}')`)
}
/** A confirmed fictitious account, its profile in `locale`, with or without a photo. */
/**
* A confirmed fictitious account, its profile in `locale`, with or without a
* photo; `localPart` starts the address (a long one tests narrow screens).
*/
export async function createAccount(
locale: 'fr' | 'en',
withAvatar: boolean,
localPart = 'e2e-shell',
): Promise<SandboxAccount> {
const tag = randomUUID().slice(0, 8)
const account = {
email: `e2e-shell-${tag}@sandbox.local`,
email: `${localPart}-${tag}@sandbox.local`,
password: randomBytes(18).toString('base64url'),
displayName: `Praticienne Fictive ${tag}`,
}