Switch to using tables for properties.

This commit is contained in:
Tom Alexander
2024-01-27 16:38:34 -05:00
parent b8eacd9c79
commit 1507050128
3 changed files with 41 additions and 5 deletions

View File

@@ -137,15 +137,19 @@ const OrgPropertiesList = (props: {
const entries = Object.entries(props.properties).map(([key, value]) => {
return (
<Fragment key={key}>
<dt>{key}</dt>
<dd>{JSON.stringify(value)}</dd>
<tr>
<th scope="row">{key}:</th>
<td>{JSON.stringify(value)}</td>
</tr>
</Fragment>
);
});
return (
<dl>
{entries}
</dl>
<table className={styles.OrgAstProperties}>
<tbody>
{entries}
</tbody>
</table>
);
};