Skip to content

Commit

Permalink
Add fix for mid screensizes when Back button is present
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Sep 15, 2024
1 parent 257f1fd commit b01b483
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/editor/src/components/document-bar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
background: $gray-200;
}
}

&.has-back-button {
@media screen and (min-width: #{ ($break-medium) }) and (max-width: $break-large) {
.editor-document-bar__post-type-label {
display: none;
}
}
}
}

.editor-document-bar__command {
Expand All @@ -37,6 +45,7 @@
overflow: hidden;
color: $gray-900;
margin: 0 auto;
max-width: 70%;

// Offset the layout based on the width of the ⌘K label. This ensures the title is centrally aligned.
@include break-medium() {
Expand All @@ -55,7 +64,7 @@

.editor-document-bar__post-title {
color: currentColor;
max-width: 64%;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;

Expand All @@ -65,6 +74,7 @@
}

.editor-document-bar__post-type-label {
flex: 0;
color: $gray-800;
padding-left: $grid-unit-05;
}
Expand Down

0 comments on commit b01b483

Please sign in to comment.