question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clipboard icon being damaged by zoom: 90%

See original GitHub issue

The clipboard icon sometimes looks like this:

image

This happens when CSS rule zoom: 90% is applied.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
ahtohbi4commented, Jul 8, 2019

@colebemis experiment shows to me that replacing rect to path element in the icon can fix the problem:

before

<svg
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path>
  <rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>
</svg>

after

<svg
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />
  <path d="M15 2H9a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1z" />
</svg>

result (Chrome 75, zoom 90%)

Снимок экрана 2019-07-08 в 13 04 59

I suppose that the reason is a difference between renders of the elements in Chrome.

1reaction
controversialcommented, May 5, 2019

Applying scale(.999) to the icon in CSS seems to fix it, if anyone’s looking for a temporary workaround!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HELP] My Yashica microtec zoom 90 is not turning on ...
It is just rapidly blinking all of the icons simultaneously like in the image (I tried uploading a video but Reddit wasn't having...
Read more >
Release notes for Windows
Zoom provides up-to-date release notes for our software on devices using Windows. This article contains information about recent changes...
Read more >
Adjusting Outlook's Zoom Setting in Email
Outlook users with high resolutions screens may have a problem reading incoming emails. This is caused by the Zoom setting. Lock the Zoom...
Read more >
FAQ: whiteboard, collaboration, boards, images, zoom
Whiteboard FAQ for collaboration. How to share board, insert image, click icon, zoom canvas? How to type text, select tool?
Read more >
The 20 Best Chromebook Keyboard Shortcuts
Press Ctrl + + (plus icon) to zoom in and magnify the page or app's content. Press Ctrl + – (minus) to zoom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found