Change margin-left to padding-left on '&:first-of-type' table cells. Adjust width of table cell to account for padding.
This commit is contained in:
Owen Conti
2017-07-30 16:22:49 -06:00
parent c3bad2964a
commit ea75eddcfb
2 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ export default class ObjectModel extends Component {
}
<span className="inner-object">
{
<table className="model" style={{ marginLeft: "2em" }}><tbody>
<table className="model"><tbody>
{
!description ? null : <tr style={{ color: "#999", fontStyle: "italic" }}>
<td>description:</td>

View File

@@ -19,8 +19,8 @@ table
&:first-of-type
{
width: 100px;
padding: 0;
width: 124px;
padding: 0 0 0 2em;
}
}
}