Skip to content

Commit

Permalink
Style panel title
Browse files Browse the repository at this point in the history
  • Loading branch information
aldipower committed Mar 10, 2016
1 parent 02d37ae commit 89d1f88
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/css/layout/helpers.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@
.base-bottom {
padding-bottom: @base-spacing-unit;
}

.inline-block {
display: inline-block;
}
2 changes: 1 addition & 1 deletion src/js/components/AppConfigEditFormComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ var AppConfigEditFormComponent = React.createClass({
getPortsPanelTitle: function () {
return (
<span>
Ports<PluginMountPointComponent
Ports<PluginMountPointComponent className="inline-block"
placeId={PluginMountPoints.APP_EDIT_FORM_PORTS_PANEL_TITLE} />
</span>
);
Expand Down
9 changes: 8 additions & 1 deletion src/js/components/PluginMountPointComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ import PluginComponentStore from "../stores/PluginComponentStore";
var PluginMountPointComponent = React.createClass({

propTypes: {
className: React.PropTypes.string,
placeId: React.PropTypes.string.isRequired
},

getDefaultProps: function () {
return {
className: null
};
},

getInitialState: function () {
return {
mountPoint: []
Expand Down Expand Up @@ -51,7 +58,7 @@ var PluginMountPointComponent = React.createClass({
},

render: function () {
return <div>{this.state.mountPoint}</div>;
return <div className={this.props.className}>{this.state.mountPoint}</div>;
}
});

Expand Down

0 comments on commit 89d1f88

Please sign in to comment.