renamed keys and items to unify fonting perception

This commit is contained in:
dzannotti 2015-08-10 21:17:05 +01:00
parent 292d582d74
commit 021e95071f
2 changed files with 3 additions and 4 deletions

View File

@ -72,7 +72,7 @@ export default class JSONArrayNode extends React.Component {
// caching it if it hasn't been created yet. // caching it if it hasn't been created yet.
getItemString() { getItemString() {
if (!this.itemString) { if (!this.itemString) {
this.itemString = this.props.data.length + ' Item' + (this.props.data.length > 1 ? 's' : ''); this.itemString = this.props.data.length + ' item' + (this.props.data.length > 1 ? 's' : '');
} }
return this.itemString; return this.itemString;
} }

View File

@ -21,8 +21,7 @@ const styles = {
}, },
spanType: { spanType: {
marginLeft: 5, marginLeft: 5,
marginRight: 5, marginRight: 5
fontSize: '1em'
} }
}; };
@ -76,7 +75,7 @@ export default class JSONObjectNode extends React.Component {
getItemString() { getItemString() {
if (!this.itemString) { if (!this.itemString) {
const len = Object.keys(this.props.data).length; const len = Object.keys(this.props.data).length;
this.itemString = len + ' Key' + (len > 1 ? 's' : ''); this.itemString = len + ' key' + (len > 1 ? 's' : '');
} }
return this.itemString; return this.itemString;
} }