Move query visibility icon to left of name

pull/11294/head
Christopher Henn 2019-01-17 11:22:08 -08:00 committed by Chris Henn
parent e9f42738ab
commit 458314830b
2 changed files with 13 additions and 5 deletions

View File

@ -4,7 +4,7 @@
background: $g2-kevlar; background: $g2-kevlar;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
display: flex; display: flex;
justify-content: space-between; justify-content: flex-start;
align-items: center; align-items: center;
color: $g10-wolf; color: $g10-wolf;
font-weight: 700; font-weight: 700;
@ -29,10 +29,10 @@
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
flex: 1 1 0;
} }
.time-machine-query-tab--close { .time-machine-query-tab--close, .time-machine-query-tab--hide {
margin-left: 10px;
margin-bottom: 2px; margin-bottom: 2px;
color: $g7-graphite; color: $g7-graphite;
@ -40,3 +40,11 @@
color: $g16-pearl; color: $g16-pearl;
} }
} }
.time-machine-query-tab--hide {
margin-right: 8px;
}
.time-machine-query-tab--close {
margin-left: 8px;
}

View File

@ -69,6 +69,7 @@ class TimeMachineQueryTab extends PureComponent<Props, State> {
className={`time-machine-query-tab ${activeClass}`} className={`time-machine-query-tab ${activeClass}`}
onClick={this.handleSetActive} onClick={this.handleSetActive}
> >
{this.showHideButton}
<TimeMachineQueryTabName <TimeMachineQueryTabName
isActive={isActive} isActive={isActive}
name={query.name} name={query.name}
@ -78,7 +79,6 @@ class TimeMachineQueryTab extends PureComponent<Props, State> {
onEdit={this.handleEditName} onEdit={this.handleEditName}
onCancelEdit={this.handleCancelEditName} onCancelEdit={this.handleCancelEditName}
/> />
{this.showHideButton}
{this.removeButton} {this.removeButton}
</div> </div>
</RightClick.Trigger> </RightClick.Trigger>
@ -151,7 +151,7 @@ class TimeMachineQueryTab extends PureComponent<Props, State> {
return ( return (
<div <div
className="time-machine-query-tab--close" className="time-machine-query-tab--hide"
onClick={this.handleToggleView} onClick={this.handleToggleView}
> >
<span className={`icon ${icon}`} /> <span className={`icon ${icon}`} />