From 91a1f75de6f44fc45c71e9172290ec70982400fc Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:38:52 +0100 Subject: [PATCH] Properly center loading placeholders of non reader images --- src/modules/core/components/SpinnerImage.tsx | 11 ++++++----- src/modules/reader/components/viewer/ReaderPage.tsx | 10 +++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/modules/core/components/SpinnerImage.tsx b/src/modules/core/components/SpinnerImage.tsx index e1bef79b..c0230ea0 100644 --- a/src/modules/core/components/SpinnerImage.tsx +++ b/src/modules/core/components/SpinnerImage.tsx @@ -28,6 +28,7 @@ interface IProps { spinnerStyle?: SxProps & { small?: boolean }; imgStyle?: SxProps; + hideImgStyle?: Omit, 'accentColor'>; onLoad?: () => void; onError?: () => void; @@ -51,6 +52,7 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef ); },