Skip to content

Commit 87d15c0

Browse files
committed
lint
1 parent 8c1893f commit 87d15c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dashboard/Data/Views/Views.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)