Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix document title alignment in command palette button #53224

Merged
merged 7 commits into from
Aug 2, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
}
}

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

@include break-large() {
width: min(100%, 450px);
}
Expand All @@ -53,6 +49,9 @@
flex-grow: 1;
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 @@ -66,6 +65,7 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 50%;
}

.edit-site-document-actions.is-page & {
Expand All @@ -89,6 +89,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 @@ -97,6 +98,7 @@
color: $gray-700;
gap: 0;
z-index: 1;
position: absolute;

&:hover {
color: currentColor;
Expand Down
Loading