File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -442,19 +442,19 @@ class Views extends TableView {
442442 ) {
443443 url = '#' ;
444444 }
445-
445+
446446 // Parse dimensions, ensuring they are positive numbers
447447 const width = value . width && parseInt ( value . width , 10 ) > 0 ? parseInt ( value . width , 10 ) : null ;
448448 const height = value . height && parseInt ( value . height , 10 ) > 0 ? parseInt ( value . height , 10 ) : null ;
449-
449+
450450 // Create style object for scale-to-fit behavior
451451 const imgStyle = {
452452 maxWidth : width ? `${ width } px` : '100%' ,
453453 maxHeight : height ? `${ height } px` : '100%' ,
454454 objectFit : 'contain' , // This ensures scale-to-fit behavior maintaining aspect ratio
455455 display : 'block'
456456 } ;
457-
457+
458458 content = (
459459 < img
460460 src = { url }
You can’t perform that action at this time.
0 commit comments