fix(frontend): profile fields — grid layout caps name col at 5rem, value gets remaining space
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m22s
test / unit (pull_request) Failing after 11m23s
test / integration (pull_request) Failing after 17m2s

This commit is contained in:
2026-05-14 22:51:07 +02:00
parent 199fe91801
commit 612b7f069b

View File

@@ -145,22 +145,21 @@ export function RemoteUserProfile({
)} )}
{actor.attachment.length > 0 && ( {actor.attachment.length > 0 && (
<div className="mt-4 overflow-x-auto"> <div className="mt-4 space-y-0 text-sm">
<table className="w-full text-sm border-collapse"> {actor.attachment.map((field) => (
<tbody> <div
{actor.attachment.map((field) => ( key={field.name}
<tr key={field.name} className="border-t"> className="grid grid-cols-[minmax(0,5rem)_1fr] gap-2 border-t py-1"
<td className="py-1 pr-3 font-medium text-muted-foreground whitespace-nowrap align-top"> >
{field.name} <span className="font-medium text-muted-foreground truncate" title={field.name}>
</td> {field.name}
<td </span>
className="py-1 break-all [&_a]:underline [&_a]:text-primary" <span
dangerouslySetInnerHTML={{ __html: field.value }} className="break-all min-w-0 [&_a]:underline [&_a]:text-primary"
/> dangerouslySetInnerHTML={{ __html: field.value }}
</tr> />
))} </div>
</tbody> ))}
</table>
</div> </div>
)} )}
</Card> </Card>