Skip to content

Commit

Permalink
Fixed highlighting color, chnged QueryPage fields
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Aug 30, 2017
1 parent fd74891 commit 31bbc84
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Header() {

return (
<div className="Header col-sm-12">
<div className="Header--container" style={{ marginLeft: isFullScreen ? '10px' : '100px' }}>
<div className="Header--container" style={{ marginLeft: isFullScreen ? '10px' : '80px' }}>
{/* @TODO: Create a separate breadcrumbs component */}
<div className="Header--breadcrumb">
<ListSymbol type="connection" /> Falcon Test Database
Expand Down
15 changes: 12 additions & 3 deletions app/containers/QueryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@ export default class QueryPage extends Component {

item = null;

didMount: boolean = false;

componentWillUnmount() {
this.didMount = false;
}

componentDidMount() {
this.didMount = true;
this.item = document.querySelector('.QueryPage').parentElement;
window.onresizeFunctions['query-page-resize'] = () => {
this.setState({
queryResultsHeight: this.item.offsetHeight - this.state.queryHeight,
});
if (this.didMount) {
this.setState({
queryResultsHeight: this.item.offsetHeight - this.state.queryHeight,
});
}
};
}

Expand Down
18 changes: 3 additions & 15 deletions app/containers/StructurePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,12 @@ export default class StructurePage extends Component {
/>
</span>
)
}, {
accessor: 'autoIncrement',
Header: 'Auto Increment',
}, {
accessor: 'primaryKey',
Header: 'Primary Key',
}, {
accessor: 'notNull',
Header: 'Not Null',
}, {
accessor: 'unique',
Header: 'Unique',
}, {
accessor: 'default',
Header: 'default',
Header: 'Default',
}, {
accessor: 'checkConstraints',
Header: 'Check Constraints',
accessor: 'notNull',
Header: 'Constraints',
}];

return (
Expand Down
4 changes: 4 additions & 0 deletions app/styles/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
cursor: pointer;
}

.FooterButton:not(:last-child) {
border-right: 2px solid lightgray;
}

.FooterButton--active {
background: gray;

Expand Down
5 changes: 5 additions & 0 deletions app/styles/app.global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ body {
margin: 0;
}

::selection {
color: white;
background: gray;
}

.ace_layer.ace_gutter-layer.ace_folding-enabled {
background: white;
}
Expand Down

0 comments on commit 31bbc84

Please sign in to comment.