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}&nbsp; <span>{this.props.project.name}</span>
{ {
this.canEditProjectName() && this.canEditProjectName() &&
<InlineSVG className="toolbar__edit-name-button" src={editProjectNameUrl} alt="Edit Project Name" /> <InlineSVG className="toolbar__edit-name-button" src={editProjectNameUrl} alt="Edit Project Name" />

View file

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