From 4fe284523444f5da8594dc42a2c8601a9c73b777 Mon Sep 17 00:00:00 2001 From: Syncx <47534062+Syncxv@users.noreply.github.com> Date: Wed, 28 Jun 2023 06:41:19 +1000 Subject: ImageZoom: add nearest neighbour (#1341) --- src/plugins/imageZoom/components/Magnifier.tsx | 2 +- src/plugins/imageZoom/index.tsx | 6 ++++++ src/plugins/imageZoom/styles.css | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/imageZoom/components/Magnifier.tsx b/src/plugins/imageZoom/components/Magnifier.tsx index 75bd2e1..4e5b667 100644 --- a/src/plugins/imageZoom/components/Magnifier.tsx +++ b/src/plugins/imageZoom/components/Magnifier.tsx @@ -156,7 +156,7 @@ export const Magnifier: React.FC = ({ instance, size: initialSiz return (
img { + image-rendering: pixelated; /* https://googlechrome.github.io/samples/image-rendering-pixelated/index.html */ +} + /* make the carousel take up less space so we can click the backdrop and exit out of it */ [class|="carouselModal"] { height: fit-content; -- cgit