react-datocms
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -130,3 +130,5 @@ "use strict"; | ||
width: '100%', | ||
height: '100%' | ||
height: '100%', | ||
maxWidth: 'none', | ||
maxHeight: 'none' | ||
}; | ||
@@ -151,3 +153,3 @@ var addImage = imageAddStrategy({ | ||
// so the edges overflow the container | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: '110%' }, placeholderStyle) })) : null; | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: '110%', maxWidth: 'none', maxHeight: 'none' }, placeholderStyle) })) : null; | ||
var width = data.width, aspectRatio = data.aspectRatio; | ||
@@ -154,0 +156,0 @@ var height = (_g = data.height) !== null && _g !== void 0 ? _g : (aspectRatio ? width / aspectRatio : 0); |
@@ -108,3 +108,5 @@ var __assign = (this && this.__assign) || function () { | ||
width: '100%', | ||
height: '100%' | ||
height: '100%', | ||
maxWidth: 'none', | ||
maxHeight: 'none' | ||
}; | ||
@@ -129,3 +131,3 @@ var addImage = imageAddStrategy({ | ||
// so the edges overflow the container | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: '110%' }, placeholderStyle) })) : null; | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: '110%', maxWidth: 'none', maxHeight: 'none' }, placeholderStyle) })) : null; | ||
var width = data.width, aspectRatio = data.aspectRatio; | ||
@@ -132,0 +134,0 @@ var height = (_g = data.height) !== null && _g !== void 0 ? _g : (aspectRatio ? width / aspectRatio : 0); |
{ | ||
"name": "react-datocms", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"types": "dist/types/index.d.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
346915
4933