Skip to content
Snippets Groups Projects
Commit 40c1fbf4 authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[REF]: Improved component to give the src a width when final width is undef due to smart is false

parent f69d2c61
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ const ImagePreview: React.FC<ImagePreviewProps> = ( ...@@ -82,7 +82,7 @@ const ImagePreview: React.FC<ImagePreviewProps> = (
onClick={(evt) => { onClick={(evt) => {
evt.preventDefault(); evt.preventDefault();
}} }}
width={finalWidth} width={!smart && !finalWidth?"100%":finalWidth}
height={finalHeight} height={finalHeight}
src={source} src={source}
alt={alt} alt={alt}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment