Skip to content
Snippets Groups Projects
Commit 305ea562 authored by Kyle Doherty's avatar Kyle Doherty
Browse files

fix centering of hide query control

parent 7f95879d
No related branches found
No related tags found
No related merge requests found
......@@ -259,10 +259,9 @@
.GuiBuilder.GuiBuilder--collapsed .Query-section {
display: none;
}
.QueryToggleWrapper { bottom: -1rem; }
.QueryToggle {
position: absolute;
bottom: -1rem;
color: #999;
border-radius: 99px;
z-index: 1000;
......
......@@ -687,21 +687,24 @@ export default React.createClass({
},
toggleIcon: function () {
var iconSize = '12px'
if(this.props.isExpanded) {
return (
<Icon name='chevronup' width="16px" height="16px" />
<Icon name='chevronup' width={iconSize} height={iconSize} />
);
} else {
return (
<Icon name='chevrondown' width="16px" height="16px" />
<Icon name='chevrondown' width={iconSize} height={iconSize} />
);
}
},
openStatus: function() {
return (
<a href="#" className="QueryToggle absolute px2 py1 no-decoration bg-white flex align-center" onClick={this.toggleOpen}>
{this.toggleIcon()}
<a href="#" className="QueryToggle px2 py1 no-decoration bg-white flex align-center" onClick={this.toggleOpen}>
<span className="mr1">
{this.toggleIcon()}
</span>
{this.toggleText()}
</a>
);
......@@ -746,7 +749,7 @@ export default React.createClass({
runFn={this.runQuery}
/>
</div>
<div className="flex absolute bottom left right layout-centered">
<div className="QueryToggleWrapper absolute left right flex layout-centered">
{this.openStatus()}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment