Fixes #914, aligns project name and autorefresh on Mac and Windows

This commit is contained in:
Cassie Tarakajian 2020-01-08 12:33:36 -05:00
parent 6120655ef2
commit df27b36b0b
2 changed files with 3 additions and 9 deletions

View file

@ -116,7 +116,7 @@ class Toolbar extends React.Component {
}
}}
>
{this.props.project.name} 
<span>{this.props.project.name}</span>
{
this.canEditProjectName() &&
<InlineSVG className="toolbar__edit-name-button" src={editProjectNameUrl} alt="Edit Project Name" />

View file

@ -68,18 +68,12 @@
align-items: center;
}
.toolbar__autorefresh{
display: flex;
align-items: center;
}
.toolbar__project-name-container {
@include themify() {
border-color: getThemifyVariable('inactive-text-color');
}
margin-left: #{10 / $base-font-size}rem;
padding-left: #{10 / $base-font-size}rem;
height: 70%;
display: flex;
align-items: center;
}
@ -95,7 +89,8 @@
}
}
cursor: pointer;
line-height: #{18 / $base-font-size}rem;
display: flex;
align-items: center;
.toolbar__project-name-container--editing & {
display: none;
@ -156,7 +151,6 @@
display: inline-block;
vertical-align: top;
height: #{18 / $base-font-size}rem;
margin-left: #{-4 / $base-font-size}rem;
& svg {
width: #{18 / $base-font-size}rem;
height: #{18 / $base-font-size}rem;