diff --git a/client/app/scripts/components/footer.js b/client/app/scripts/components/footer.js index ea2cddb22..be88826f5 100644 --- a/client/app/scripts/components/footer.js +++ b/client/app/scripts/components/footer.js @@ -74,10 +74,10 @@ class Footer extends React.Component { className="footer-icon" onClick={this.handleRelayoutClick} title={forceRelayoutTitle}> - + diff --git a/client/app/scripts/components/help-panel.js b/client/app/scripts/components/help-panel.js index bab65b7ad..5eed4aa88 100644 --- a/client/app/scripts/components/help-panel.js +++ b/client/app/scripts/components/help-panel.js @@ -172,7 +172,7 @@ function HelpPanel({ {renderFieldsPanel(currentTopologyName, searchableFields)}
- {type} - {isPinned && } + {isPinned && }
); } diff --git a/client/app/scripts/components/network-selector-item.js b/client/app/scripts/components/network-selector-item.js index c975a913e..0413fba8f 100644 --- a/client/app/scripts/components/network-selector-item.js +++ b/client/app/scripts/components/network-selector-item.js @@ -49,7 +49,7 @@ class NetworkSelectorItem extends React.Component { onClick={this.onMouseClick} style={style}> {network.get('label')} - {isPinned && } + {isPinned && } ); } diff --git a/client/app/scripts/components/node-details.js b/client/app/scripts/components/node-details.js index d075ea993..b6892de93 100644 --- a/client/app/scripts/components/node-details.js +++ b/client/app/scripts/components/node-details.js @@ -57,14 +57,14 @@ class NodeDetails extends React.Component {
{showSwitchTopology && - Show in {this.props.topologyId.replace(/-/g, ' ')} - + } - + ); } diff --git a/client/app/scripts/components/node-details/node-details-controls.js b/client/app/scripts/components/node-details/node-details-controls.js index 81e799206..edb9029ec 100644 --- a/client/app/scripts/components/node-details/node-details-controls.js +++ b/client/app/scripts/components/node-details/node-details-controls.js @@ -17,7 +17,7 @@ export default function NodeDetailsControls({
{error &&
- + {error}
} diff --git a/client/app/scripts/components/node-details/node-details-table-headers.js b/client/app/scripts/components/node-details/node-details-table-headers.js index 050ae188f..37a4a7779 100644 --- a/client/app/scripts/components/node-details/node-details-table-headers.js +++ b/client/app/scripts/components/node-details/node-details-table-headers.js @@ -41,9 +41,9 @@ export default class NodeDetailsTableHeaders extends React.Component {
{isSortedAsc - && } + && } {isSortedDesc - && } + && } {label}
diff --git a/client/app/scripts/components/plugins.js b/client/app/scripts/components/plugins.js index b5e6bd1d7..753755349 100644 --- a/client/app/scripts/components/plugins.js +++ b/client/app/scripts/components/plugins.js @@ -17,7 +17,7 @@ const Plugin = ({ - {error && } + {error && } {label || id} diff --git a/client/app/scripts/components/status.js b/client/app/scripts/components/status.js index b331fbbc4..8801375c2 100644 --- a/client/app/scripts/components/status.js +++ b/client/app/scripts/components/status.js @@ -38,7 +38,7 @@ class Status extends React.Component { return (
- {showWarningIcon && } + {showWarningIcon && } {text}
); diff --git a/client/app/scripts/components/terminal.js b/client/app/scripts/components/terminal.js index a319659e9..8ac1f8c3c 100644 --- a/client/app/scripts/components/terminal.js +++ b/client/app/scripts/components/terminal.js @@ -267,7 +267,7 @@ class Terminal extends React.Component { onClick={this.handlePopoutTerminal}> Pop out
- @@ -330,7 +330,7 @@ class Terminal extends React.Component { getControlStatusIcon() { const icon = this.props.controlStatus && this.props.controlStatus.get('control').icon; return ( - diff --git a/client/app/scripts/components/time-control.js b/client/app/scripts/components/time-control.js index 9078697b4..f6799e6b2 100644 --- a/client/app/scripts/components/time-control.js +++ b/client/app/scripts/components/time-control.js @@ -51,7 +51,7 @@ class TimeControl extends React.Component { onClick={this.handleNowClick} disabled={!topologiesLoaded} title="Show live state of the system"> - {!isPaused && } + {!isPaused && } Live - {isPaused && } + {isPaused && } {isPaused ? 'Paused' : 'Pause'}
diff --git a/client/app/scripts/components/troubleshooting-menu.js b/client/app/scripts/components/troubleshooting-menu.js index 1fb2b9746..7204fdafa 100644 --- a/client/app/scripts/components/troubleshooting-menu.js +++ b/client/app/scripts/components/troubleshooting-menu.js @@ -36,7 +36,7 @@ class DebugMenu extends React.Component { download title="Save raw data as JSON" > - + Save raw data as JSON @@ -48,7 +48,7 @@ class DebugMenu extends React.Component { onClick={this.props.clickDownloadGraph} title="Save canvas as SVG (does not include search highlighting)" > - + Save canvas as SVG (does not include search highlighting) @@ -60,7 +60,7 @@ class DebugMenu extends React.Component { title="Reset view state" onClick={this.handleClickReset} > - + Reset your local view state and reload the page
@@ -72,12 +72,12 @@ class DebugMenu extends React.Component { target="_blank" rel="noopener noreferrer" > - + Report a bug
- - + {label}
); diff --git a/client/app/scripts/components/warning.js b/client/app/scripts/components/warning.js index 3cf4cc7bb..4fadad6db 100644 --- a/client/app/scripts/components/warning.js +++ b/client/app/scripts/components/warning.js @@ -27,7 +27,7 @@ class Warning extends React.Component { return (
- + {expanded && {text}}
diff --git a/client/app/scripts/components/zoom-control.js b/client/app/scripts/components/zoom-control.js index 68510b30f..a39204586 100644 --- a/client/app/scripts/components/zoom-control.js +++ b/client/app/scripts/components/zoom-control.js @@ -57,11 +57,11 @@ export default class ZoomControl extends React.Component { return (
); diff --git a/client/app/styles/_base.scss b/client/app/styles/_base.scss index 7ee61395f..347dfa9bd 100644 --- a/client/app/styles/_base.scss +++ b/client/app/styles/_base.scss @@ -1,4 +1,5 @@ @import '~@fortawesome/fontawesome-free/css/all.css'; +@import '~@fortawesome/fontawesome-free/css/v4-shims.css'; @import '~rc-slider/dist/rc-slider.css'; /* sass-lint:disable variable-for-property */ @@ -121,7 +122,7 @@ a { padding: 1px 3px; outline: 0; - .fa { + i { font-size: $font-size-small; position: relative; top: 2px; @@ -544,7 +545,7 @@ a { z-index: $layer-front; } - > span { + > i { @extend .btn-opacity; padding: 4px 5px; margin-left: 2px; @@ -738,6 +739,8 @@ a { color: $text-secondary-color; font-size: $font-size-small; + // TODO: remove this in the future you can't count on .fa but I don't + // know where label .fa comes from. .fa { margin-left: 0.5em; } @@ -931,16 +934,6 @@ a { font-size: $font-size-small; color: $text-secondary-color; } - - &-value-sparkline { - > div { - display: inline-block; - } - span { - margin-left: 1em; - } - } - } } } @@ -1232,7 +1225,7 @@ a { margin-bottom: 0; } - .fa { + i { font-size: $font-size-tiny; margin-left: 4px; color: $color-orange-500; @@ -1319,7 +1312,7 @@ a { margin-right: 15px; margin-top: 3px; - .fa { + i { color: $text-secondary-color; font-size: $font-size-normal; } @@ -1347,7 +1340,7 @@ a { .view-mode-selector-wrapper, .time-control-wrapper { .label { margin-left: 4px; } - .fa { + i { margin-left: 0; color: $text-secondary-color; } @@ -1464,7 +1457,7 @@ a { top: 6px; right: 8px; - span { + i { @extend .btn-opacity; padding: 4px 5px; margin-left: 2px; @@ -1779,13 +1772,13 @@ a { } } - .fa { + i { width: 20px; text-align: center; margin-right: 10px; } - .fa-times { + .fa.fa-times { width: 25px; } }