Skip to content

Commit

Permalink
Center back button in any cases. Unfortunately, there is a two pixel …
Browse files Browse the repository at this point in the history
…misalignment which we have to cancel out. This is most likely coming from the arrow being thinner than the font
  • Loading branch information
HDinger committed Nov 9, 2023
1 parent dbfdaf9 commit 6ce609d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/primer/open_project/page_header.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
display: flex;
flex-flow: row;
justify-content: flex-end;
align-items: baseline; /* Keep back button vertically aligned. */
align-items: center; /* Keep back button vertically aligned. */
}

.PageHeader-title {
Expand Down Expand Up @@ -53,5 +53,6 @@
}

.PageHeader-backButton {
margin-top: 2px; /* to center align with label */
margin-right: var(--base-size-4);
}

0 comments on commit 6ce609d

Please sign in to comment.