diff options
-rw-r--r-- | src/components/ObjectComponent.js | 20 | ||||
-rw-r--r-- | src/styles/main.css | 10 |
2 files changed, 22 insertions, 8 deletions
diff --git a/src/components/ObjectComponent.js b/src/components/ObjectComponent.js index 56bdc7c..bc059a3 100644 --- a/src/components/ObjectComponent.js +++ b/src/components/ObjectComponent.js @@ -48,15 +48,21 @@ function UserPresentation(props) { {Object.entries(props.data).map( ([key, { data, display_name, description }]) => { return ( - <tr key={key}> - <td>{display_name}</td> + <> + <tr key={key}> + <td>{display_name}</td> + <td>{data.toString()}</td> + </tr> {description && ( - <td className="description"> - {description} - </td> + <tr + className="description" + key={key + "-description"} + > + <td colspan="2">{description}</td> + </tr> )} - <td>{data.toString()}</td> - </tr> + <tr className="spacer"></tr> + </> ); } )} diff --git a/src/styles/main.css b/src/styles/main.css index 4e78591..ba42d67 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -67,11 +67,19 @@ body { margin-bottom: 0.5em; } -.object .user-presentation .description { +.object > .user-presentation > .description { font-style: italic; margin-bottom: 1em; } +.object > .user-presentation > table .description { + font-style: italic; +} + +.object > .user-presentation > table .spacer { + height: 1em; +} + /* List */ #list-container > #controls { |