diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-11 02:00:42 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-11 02:00:42 +0200 |
commit | 358eb6ad8eaf86fc96494f0e36216608e0023357 (patch) | |
tree | c7d89cff7b0fdca56373fb7b04f1c9cde7402389 /src/plugins/imageZoom/components | |
parent | c997cb4958d2bc34103fa32b0a1a72824c16bd94 (diff) | |
download | Vencord-358eb6ad8eaf86fc96494f0e36216608e0023357.tar.gz Vencord-358eb6ad8eaf86fc96494f0e36216608e0023357.tar.bz2 Vencord-358eb6ad8eaf86fc96494f0e36216608e0023357.zip |
ImageZoom Fixes
Diffstat (limited to 'src/plugins/imageZoom/components')
-rw-r--r-- | src/plugins/imageZoom/components/Magnifier.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/imageZoom/components/Magnifier.tsx b/src/plugins/imageZoom/components/Magnifier.tsx index e61c560..75bd2e1 100644 --- a/src/plugins/imageZoom/components/Magnifier.tsx +++ b/src/plugins/imageZoom/components/Magnifier.tsx @@ -36,7 +36,6 @@ export interface MagnifierProps { export const Magnifier: React.FC<MagnifierProps> = ({ instance, size: initialSize, zoom: initalZoom }) => { const [ready, setReady] = useState(false); - const [lensPosition, setLensPosition] = useState<Vec2>({ x: 0, y: 0 }); const [imagePosition, setImagePosition] = useState<Vec2>({ x: 0, y: 0 }); const [opacity, setOpacity] = useState(0); @@ -157,7 +156,7 @@ export const Magnifier: React.FC<MagnifierProps> = ({ instance, size: initialSiz return ( <div - className="lens" + className="vc-imgzoom-lens" style={{ opacity, width: size.current + "px", @@ -190,7 +189,8 @@ export const Magnifier: React.FC<MagnifierProps> = ({ instance, size: initialSiz }} width={`${box.width * zoom.current}px`} height={`${box.height * zoom.current}px`} - src={instance.props.src} alt="" + src={instance.props.src} + alt="" /> )} </div> |