react-datocms
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -59,3 +59,3 @@ "use strict"; | ||
// so the edges overflow the container | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: '110%', maxWidth: 'none', maxHeight: 'none' }, placeholderStyle); | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: 'auto', maxWidth: 'none', maxHeight: 'none' }, placeholderStyle); | ||
const placeholder = usePlaceholder && data.base64 ? (react_1.default.createElement("img", { "aria-hidden": "true", alt: "", src: data.base64, className: placeholderClassName, style: Object.assign({ objectFit, | ||
@@ -62,0 +62,0 @@ objectPosition }, basePlaceholderStyle) })) : usePlaceholder && data.bgColor ? (react_1.default.createElement("div", { className: placeholderClassName, style: Object.assign({ backgroundColor: data.bgColor }, basePlaceholderStyle) })) : null; |
@@ -53,3 +53,3 @@ 'use client'; | ||
// so the edges overflow the container | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: '110%', maxWidth: 'none', maxHeight: 'none' }, placeholderStyle); | ||
position: 'absolute', left: '-5%', top: '-5%', width: '110%', height: 'auto', maxWidth: 'none', maxHeight: 'none' }, placeholderStyle); | ||
const placeholder = usePlaceholder && data.base64 ? (React.createElement("img", { "aria-hidden": "true", alt: "", src: data.base64, className: placeholderClassName, style: Object.assign({ objectFit, | ||
@@ -56,0 +56,0 @@ objectPosition }, basePlaceholderStyle) })) : usePlaceholder && data.bgColor ? (React.createElement("div", { className: placeholderClassName, style: Object.assign({ backgroundColor: data.bgColor }, basePlaceholderStyle) })) : null; |
{ | ||
"name": "react-datocms", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=8.0.0" |
@@ -34,3 +34,3 @@ <!--datocms-autoinclude-header start--> | ||
Live demo: [https://react-datocms-example.netlify.com/](https://react-datocms-example.netlify.com/) | ||
Live demo: [https://react-datocms-example.netlify.app/](https://react-datocms-example.netlify.app/) | ||
@@ -37,0 +37,0 @@ # Development |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet