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> = (
onClick={(evt) => {
evt.preventDefault();
}}
width={finalWidth}
width={!smart && !finalWidth?"100%":finalWidth}
height={finalHeight}
src={source}
alt={alt}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment