Skip to content

Commit

Permalink
fix(images): avoid blurry images (#9591)
Browse files Browse the repository at this point in the history
When using 100% display scaling on 1X screens, images included on the website appear blurry. They inherit the size of the actual image, but are then pushed in by the border around them, making them no longer pixel-aligned.
  • Loading branch information
kuubeu authored Oct 27, 2023
1 parent 9437c8c commit 0829b7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/document/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
background: #fff;
border: 1px solid var(--border-primary) !important;
border-radius: var(--elem-radius);
/* Required to prevent the border from scaling images, making them look blurry. */
box-sizing: content-box;
/* Required for alt texts. */
color: #1b1b1b;
display: inline-block;
Expand Down

0 comments on commit 0829b7e

Please sign in to comment.