feat(frontend): compact table density (32px row) global
Add table-compact class to all 4 list surfaces: EngagementsListPage, TemplatesListPage, UsersAdminPage, SimulationList. Remove inline px-xl py-md from th/td — recipe handles padding. Row border-b moved to recipe. WCAG SC 2.5.5 tradeoff accepted (BAS operator tool). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -188,13 +188,13 @@ export function UsersAdminPage(): JSX.Element {
|
||||
|
||||
{!list.isLoading && !list.isError && list.data && list.data.length > 0 ? (
|
||||
<div className="card-product overflow-hidden p-0">
|
||||
<table className="w-full text-left">
|
||||
<table className="table-compact w-full text-left">
|
||||
<thead className="bg-cloud border-b border-hairline">
|
||||
<tr className="text-[12px] uppercase tracking-[0.5px] text-graphite">
|
||||
<th className="px-xl py-md">Username</th>
|
||||
<th className="px-xl py-md">Role</th>
|
||||
<th className="px-xl py-md">Created</th>
|
||||
<th className="px-xl py-md text-right">Actions</th>
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Role</th>
|
||||
<th>Created</th>
|
||||
<th className="text-right">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -204,8 +204,8 @@ export function UsersAdminPage(): JSX.Element {
|
||||
// Fragment must carry the key — `<>` cannot, which broke
|
||||
// per-row reconciliation (reset-password state leaked across rows).
|
||||
<Fragment key={u.id}>
|
||||
<tr className="border-b border-hairline last:border-0">
|
||||
<td className="px-xl py-md text-ink">
|
||||
<tr>
|
||||
<td className="text-ink">
|
||||
<span className="font-mono font-medium">{u.username}</span>
|
||||
{isSelf ? (
|
||||
<span className="ml-sm font-sans text-[12px] text-graphite">
|
||||
@@ -213,7 +213,7 @@ export function UsersAdminPage(): JSX.Element {
|
||||
</span>
|
||||
) : null}
|
||||
</td>
|
||||
<td className="px-xl py-md">
|
||||
<td>
|
||||
<Select
|
||||
value={u.role}
|
||||
onChange={(e) => onRoleChange(u, e.target.value as Role)}
|
||||
@@ -222,8 +222,8 @@ export function UsersAdminPage(): JSX.Element {
|
||||
disabled={patchMutation.isPending}
|
||||
/>
|
||||
</td>
|
||||
<td className="px-xl py-md text-charcoal font-mono">{u.created_at}</td>
|
||||
<td className="px-xl py-md text-right">
|
||||
<td className="text-charcoal font-mono">{u.created_at}</td>
|
||||
<td className="text-right">
|
||||
<div className="inline-flex gap-sm">
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user