Skip to content

Commit f4995b0

Browse files
authored
Merge pull request #1228 from shyash/align-toolbar
Fix toolbar alignment (#914)
2 parents 3357af6 + df27b36 commit f4995b0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

client/modules/IDE/components/Toolbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Toolbar extends React.Component {
116116
}
117117
}}
118118
>
119-
{this.props.project.name} 
119+
<span>{this.props.project.name}</span>
120120
{
121121
this.canEditProjectName() &&
122122
<InlineSVG className="toolbar__edit-name-button" src={editProjectNameUrl} alt="Edit Project Name" />

client/styles/components/_toolbar.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
}
7575
margin-left: #{10 / $base-font-size}rem;
7676
padding-left: #{10 / $base-font-size}rem;
77-
height: 70%;
7877
display: flex;
7978
align-items: center;
8079
}
@@ -90,7 +89,8 @@
9089
}
9190
}
9291
cursor: pointer;
93-
line-height: #{18 / $base-font-size}rem;
92+
display: flex;
93+
align-items: center;
9494

9595
.toolbar__project-name-container--editing & {
9696
display: none;
@@ -151,7 +151,6 @@
151151
display: inline-block;
152152
vertical-align: top;
153153
height: #{18 / $base-font-size}rem;
154-
margin-left: #{-4 / $base-font-size}rem;
155154
& svg {
156155
width: #{18 / $base-font-size}rem;
157156
height: #{18 / $base-font-size}rem;

0 commit comments

Comments
 (0)