Skip to content

Commit 0829b7e

Browse files
authored
fix(images): avoid blurry images (#9591)
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.
1 parent 9437c8c commit 0829b7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: client/src/document/index.scss

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
background: #fff;
8888
border: 1px solid var(--border-primary) !important;
8989
border-radius: var(--elem-radius);
90+
/* Required to prevent the border from scaling images, making them look blurry. */
91+
box-sizing: content-box;
9092
/* Required for alt texts. */
9193
color: #1b1b1b;
9294
display: inline-block;

0 commit comments

Comments
 (0)