@@ -79,8 +79,8 @@ export default class ObjectModel extends Component {
79
79
{
80
80
< table className = "model" > < tbody >
81
81
{
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 >
84
84
< td >
85
85
< Markdown source = { description } />
86
86
</ td >
@@ -91,16 +91,22 @@ export default class ObjectModel extends Component {
91
91
( [ key , value ] ) => {
92
92
let isDeprecated = isOAS3 ( ) && value . get ( "deprecated" )
93
93
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" )
97
103
}
98
104
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 > }
102
108
</ td >
103
- < td style = { { verticalAlign : "top" } } >
109
+ < td >
104
110
< Model key = { `object-${ name } -${ key } _${ value } ` } { ...otherProps }
105
111
required = { isRequired }
106
112
getComponent = { getComponent }
@@ -126,11 +132,11 @@ export default class ObjectModel extends Component {
126
132
127
133
const normalizedValue = ! value ? null : value . toJS ? value . toJS ( ) : value
128
134
129
- return ( < tr key = { key } style = { { color : "#777" } } >
135
+ return ( < tr key = { key } className = "extension" >
130
136
< td >
131
137
{ key }
132
138
</ td >
133
- < td style = { { verticalAlign : "top" } } >
139
+ < td >
134
140
{ JSON . stringify ( normalizedValue ) }
135
141
</ td >
136
142
</ tr > )
0 commit comments