Skip to content

Commit

Permalink
Fix document title alignment in command palette button (#53224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster authored and tellthemachines committed Aug 14, 2023
1 parent 3d2c7d2 commit dc993b0
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
width: min(100%, 380px);
}

&:hover {
background-color: $gray-200;
}

.components-button {
border-radius: $grid-unit-05;

Expand All @@ -26,10 +30,6 @@
}
}

@include break-medium() {
width: 50%;
}

@include break-large() {
width: min(100%, 450px);
}
Expand All @@ -46,6 +46,9 @@
color: var(--wp-block-synced-color);
overflow: hidden;

// Offset the layout based on the width of the ⌘K label. This ensures the title is centrally aligned.
padding-left: $grid-unit-40;

&:hover {
color: var(--wp-block-synced-color);
}
Expand All @@ -60,6 +63,7 @@
overflow: hidden;
text-overflow: ellipsis;
color: var(--wp-block-synced-color);
max-width: 50%;
}

.edit-site-document-actions.is-page & {
Expand All @@ -83,6 +87,7 @@

.edit-site-document-actions__shortcut {
color: $gray-800;
min-width: $grid-unit-40;
}

.edit-site-document-actions__back.components-button.has-icon.has-text {
Expand All @@ -91,9 +96,11 @@
color: $gray-700;
gap: 0;
z-index: 1;
position: absolute;

&:hover {
color: currentColor;
background-color: transparent;
}

.edit-site-document-actions.is-animated & {
Expand Down

0 comments on commit dc993b0

Please sign in to comment.