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