Skip to content

Commit

Permalink
Improve icon visual scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed May 25, 2021
1 parent 8f5f7d4 commit dff46e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ $block-editor-link-control-number-of-actions: 1;
.block-editor-link-control__search-item-header {
display: block;
flex-direction: row;
align-items: center;
align-items: flex-start;
margin-right: $grid-unit-20;
overflow: hidden;
white-space: nowrap;
Expand All @@ -168,14 +168,15 @@ $block-editor-link-control-number-of-actions: 1;

.block-editor-link-control__search-item-icon {
position: relative;
top: 0.2em;
margin-right: $grid-unit-10;
width: 32px;
height: 32px;
width: 18px; // half of 32px to improve perceived resolution.
height: 18px; // half of 32px to improve perceived resolution.

svg,
img {
max-width: none;
width: 32px;
width: 18px; // half of 32px to improve perceived resolution.
}
}

Expand Down

0 comments on commit dff46e3

Please sign in to comment.