Skip to content

Commit a8ddab6

Browse files
committed
add comment to the styles
1 parent 1641c66 commit a8ddab6

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

app/components/primer/open_project/page_header.pcss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,14 @@
8484
flex: 1 1 auto;
8585
}
8686

87-
.PageHeader--noBreadcrumb .PageHeader-contextBar {
88-
display: none;
89-
}
90-
91-
/* Keep it visible on smaller */
92-
@media (max-width: 543.98px) {
87+
/* Hide the context bar on desktop when no breadcrumb is visible */
88+
@media screen and (min-width: 543.98px) {
9389
.PageHeader--noBreadcrumb .PageHeader-contextBar {
94-
display: flex;
90+
display: none;
9591
}
9692
}
9793

94+
/* Match the title bar height with the toggle menu button for proper vertical alignment */
9895
.PageHeader--noBreadcrumb .PageHeader-titleBar {
9996
height: var(--control-small-size);
10097
}

0 commit comments

Comments
 (0)