From 583b3bcdb103b7d1f77da842917dee584ae13fac Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 16 Aug 2024 11:40:36 +0800 Subject: [PATCH] Make the picture element inline block so it doesn't always take up full space --- src/theme/NativeIdealImage.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/NativeIdealImage.css b/src/theme/NativeIdealImage.css index 8582260..57ff91a 100644 --- a/src/theme/NativeIdealImage.css +++ b/src/theme/NativeIdealImage.css @@ -1,12 +1,12 @@ .native-ideal-img { - display: block; + display: inline-block; position: relative; overflow: hidden; } .native-ideal-img > img { display: block; - width: 100%; + max-width: 100%; height: auto; }