From 4cbbc3963de555d3c66c54ec7afc3e8c8f294e00 Mon Sep 17 00:00:00 2001 From: Apostolos Tsakpinis Date: Sat, 26 Oct 2019 15:18:05 +0300 Subject: [PATCH] chore: remove intrinsicsize Proposal is no longer active. A more elegant solution has been proposed and is now being implemented by browsers: https://github.com/WICG/intrinsicsize-attribute/issues/16 --- client/components/LazyImg.tsx | 1 - client/routes/home/index.tsx | 23 +++-------------------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/client/components/LazyImg.tsx b/client/components/LazyImg.tsx index 7070bd0e..733d05fe 100644 --- a/client/components/LazyImg.tsx +++ b/client/components/LazyImg.tsx @@ -30,7 +30,6 @@ function getPlaceholder(params: Partial { rootMargin?: string; - intrinsicsize?: string; // TODO: Remove this when added to ImgHTMLAttributes } export const LazyImg: React.FC = lazyPolyfill diff --git a/client/routes/home/index.tsx b/client/routes/home/index.tsx index 0567581e..8083b7b8 100644 --- a/client/routes/home/index.tsx +++ b/client/routes/home/index.tsx @@ -368,7 +368,6 @@ const StaticContent = () => { className="m-3" width={218} height={50} - intrinsicsize="218x50" src="/img/sponsors/vpsserver.com.svg" alt="VPSSERVER.com" /> @@ -378,14 +377,7 @@ const StaticContent = () => { rel="sponsored noopener" target="_blank" > - + { > { > { /> - +