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;
border-radius: 5px 5px 0 0;
display: flex;
justify-content: space-between;
justify-content: flex-start;
align-items: center;
color: $g10-wolf;
font-weight: 700;
@ -29,10 +29,10 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
flex: 1 1 0;
}
.time-machine-query-tab--close {
margin-left: 10px;
.time-machine-query-tab--close, .time-machine-query-tab--hide {
margin-bottom: 2px;
color: $g7-graphite;
@ -40,3 +40,11 @@
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}`}
onClick={this.handleSetActive}
>
{this.showHideButton}
<TimeMachineQueryTabName
isActive={isActive}
name={query.name}
@ -78,7 +79,6 @@ class TimeMachineQueryTab extends PureComponent<Props, State> {
onEdit={this.handleEditName}
onCancelEdit={this.handleCancelEditName}
/>
{this.showHideButton}
{this.removeButton}
</div>
</RightClick.Trigger>
@ -151,7 +151,7 @@ class TimeMachineQueryTab extends PureComponent<Props, State> {
return (
<div
className="time-machine-query-tab--close"
className="time-machine-query-tab--hide"
onClick={this.handleToggleView}
>
<span className={`icon ${icon}`} />