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

Improve display of LinkURL menu and fix spacing. #33652

Merged
merged 5 commits into from
Jul 30, 2021
Merged
Changes from all 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
13 changes: 7 additions & 6 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,14 @@ $preview-image-height: 140px;
position: relative;
top: 0.2em;
margin-right: $grid-unit-10;
width: 18px; // half of 32px to improve perceived resolution.
height: 18px; // half of 32px to improve perceived resolution.
max-height: 24px;
flex-shrink: 0;
width: 24px;
display: flex;
justify-content: center;
Comment on lines +187 to +191
Copy link
Contributor

@getdave getdave Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: to make things easier for future devs and to avoid regressions it might be nice to add a code comment here to explain why we're doing this and what issue it addresses. Otherwise I'm concerned this would be open to accidental regression.


svg,
img {
max-width: none;
width: 18px; // half of 32px to improve perceived resolution.
width: 16px; // favicons often have a source of 32px
}
}

Expand Down Expand Up @@ -385,7 +386,7 @@ $preview-image-height: 140px;
align-items: center;
border-top: $border-width solid $gray-300;
margin: 0;
padding: $grid-unit-20 $grid-unit-30;
padding: $grid-unit-20;
}

.block-editor-link-control__unlink {
Expand Down