Skip to content

Commit 076045d

Browse files
Fix lightbox image (#91)
1 parent 0629791 commit 076045d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@cloudquery/plugin-config-ui-lib",
33
"description": "Plugin configuration UI library for CloudQuery Cloud App",
4-
"version": "7.1.1",
4+
"version": "7.1.2",
55
"private": false,
66
"main": "dist/index.cjs.js",
77
"module": "dist/index.esm.js",

src/components/display/lightboxImage/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ export function LightboxImage({ sizes, ...props }: ImgHTMLAttributes<HTMLImageEl
113113
sizes="100vw"
114114
style={{
115115
height: 'auto',
116-
maxHeight: isLoaded ? undefined : 0,
116+
maxHeight: isLoaded ? '100%' : 0,
117117
maxWidth: '100%',
118+
width: 'auto',
118119
}}
119120
width={typeof window === 'undefined' ? 0 : window.innerWidth}
120121
/>

0 commit comments

Comments
 (0)