Skip to content
Snippets Groups Projects
Commit 2dc86947 authored by Aymeric Bernard's avatar Aymeric Bernard
Browse files

Use 2*rowHeight as default for image height

parent e4bd84a3
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@ const PureTextRow = ({ row }) => (
const PureImageRow = ({ row }) => {
const style =
'heightFactor' in row ? { height: `calc(${row.heightFactor} * var(--rowHeight))` } : {};
'heightFactor' in row
? { height: `calc(${row.heightFactor} * var(--rowHeight))` }
: { height: 'calc(2 * var(--rowHeight))' };
return (
<div className="bloc image-bloc" style={style}>
<img src={row.image} alt="" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment