Skip to content

Commit

Permalink
Fixed conditional statement for header margin
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Sep 2, 2017
1 parent 3f16b8f commit d248eb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { remote } from 'electron';
import ListSymbol from './ListSymbol';

export default function Header() {
const shouldShowMargin =
remote.getCurrentWindow().isFullScreen() &&
process.platform === 'darwin';
const shouldHideMargin =
remote.getCurrentWindow().isFullScreen() ||
process.platform !== 'darwin';

return (
<div className="Header col-sm-12">
<div className="Header--container" style={{ marginLeft: shouldShowMargin ? '10px' : '80px' }}>
<div className="Header--container" style={{ marginLeft: shouldHideMargin ? '10px' : '80px' }}>
{/* @TODO: Create a separate breadcrumbs component */}
<div className="Header--breadcrumb">
<ListSymbol type="connection" /> Falcon Test Database
Expand Down

0 comments on commit d248eb1

Please sign in to comment.