diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index 5159a3f3..7d3588ed 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -259,10 +259,14 @@ const getLayoutStyles = ( zoom: ${zoomLevel}; } svg, img { - height: auto; - width: auto; background-color: transparent !important; } + svg:where(:not([width])), img:where(:not([width])) { + width: auto; + } + svg:where(:not([height])), img:where(:not([height])) { + height: auto; + } figure > div:has(img) { height: auto !important; }