@@ -79,8 +79,8 @@ export default class ObjectModel extends Component {
7979 {
8080 < table className = "model" > < tbody >
8181 {
82- ! description ? null : < tr style = { { color : "#666" , fontWeight : "normal" } } >
83- < td style = { { fontWeight : "bold" } } > description:</ td >
82+ ! description ? null : < tr className = "description" >
83+ < td > description:</ td >
8484 < td >
8585 < Markdown source = { description } />
8686 </ td >
@@ -91,16 +91,22 @@ export default class ObjectModel extends Component {
9191 ( [ key , value ] ) => {
9292 let isDeprecated = isOAS3 ( ) && value . get ( "deprecated" )
9393 let isRequired = List . isList ( requiredProperties ) && requiredProperties . contains ( key )
94- let propertyStyle = { verticalAlign : "top" , paddingRight : "0.2em" }
95- if ( isRequired ) {
96- propertyStyle . fontWeight = "bold"
94+
95+ let classNames = [ "property-row" ]
96+
97+ if ( isDeprecated ) {
98+ classNames . push ( "deprecated" )
99+ }
100+
101+ if ( isRequired ) {
102+ classNames . push ( "required" )
97103 }
98104
99- return ( < tr key = { key } className = { isDeprecated && "deprecated" } >
100- < td style = { propertyStyle } >
101- { key } { isRequired && < span style = { { color : "red" } } > *</ span > }
105+ return ( < tr key = { key } className = { classNames . join ( " " ) } >
106+ < td >
107+ { key } { isRequired && < span className = "star" > *</ span > }
102108 </ td >
103- < td style = { { verticalAlign : "top" } } >
109+ < td >
104110 < Model key = { `object-${ name } -${ key } _${ value } ` } { ...otherProps }
105111 required = { isRequired }
106112 getComponent = { getComponent }
@@ -126,11 +132,11 @@ export default class ObjectModel extends Component {
126132
127133 const normalizedValue = ! value ? null : value . toJS ? value . toJS ( ) : value
128134
129- return ( < tr key = { key } style = { { color : "#777" } } >
135+ return ( < tr key = { key } className = "extension" >
130136 < td >
131137 { key }
132138 </ td >
133- < td style = { { verticalAlign : "top" } } >
139+ < td >
134140 { JSON . stringify ( normalizedValue ) }
135141 </ td >
136142 </ tr > )
0 commit comments