Skip to content

Commit

Permalink
Code refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Feb 11, 2017
1 parent 62b7f6a commit 28c1b6c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
8 changes: 6 additions & 2 deletions src/web/containers/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ class Header extends Component {
{ 'hidden': hideUserDropdown }
)}
id="nav-dropdown-user"
title={<i className="fa fa-fw fa-user" />}
title={
<div title={i18n._('Account')}>
<i className="fa fa-fw fa-user" />
</div>
}
noCaret
>
<MenuItem header>
Expand All @@ -292,7 +296,7 @@ class Header extends Component {
<NavDropdown
id="nav-dropdown-menu"
title={
<div>
<div title={i18n._('Options')}>
<i className="fa fa-fw fa-ellipsis-v" />
{this.state.runningTasks.length > 0 &&
<span
Expand Down
4 changes: 3 additions & 1 deletion src/web/widgets/Visualizer/Controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ class Controls extends Component {
<span className="space" />
{i18n._('3D View')}
</button>
<Dropdown.Toggle bsStyle="default" />
<Dropdown.Toggle
bsStyle="default"
/>
<Dropdown.Menu>
<MenuItem
style={{ color: '#222' }}
Expand Down
5 changes: 1 addition & 4 deletions src/web/widgets/Visualizer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,7 @@ class VisualizerWidget extends Component {
};

return (
<Widget
style={{ minWidth: 320 }}
borderless
>
<Widget borderless>
<Widget.Header className={styles.widgetHeader} fixed>
<Controls
state={state}
Expand Down
6 changes: 6 additions & 0 deletions src/web/widgets/Visualizer/index.styl
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.widget-header,
.widget-content {
min-width: 320px;
}

.widget-header {
height: 32px;
padding: 4px 8px;

.controller-type {
Expand Down

0 comments on commit 28c1b6c

Please sign in to comment.