File tree Expand file tree Collapse file tree 1 file changed +24
-17
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +24
-17
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ const styles = css`
3636` ;
3737
3838const galleryBodyImageStyles = css `
39+ display : flex;
3940 ${ grid . column . all }
40- position : relative;
4141
4242 ${ from . tablet } {
4343 ${ grid . column . centre }
@@ -75,24 +75,31 @@ export const GalleryImage = ({
7575 return (
7676 < figure css = { styles } >
7777 < div css = { galleryBodyImageStyles } >
78- < Picture
79- alt = { image . data . alt ?? '' }
80- format = { format }
81- role = { image . role }
82- master = { asset . url }
83- width = { width }
84- height = { height }
85- loading = "lazy"
86- />
87- { renderingTarget === 'Web' && ! isUndefined ( image . position ) && (
88- < LightboxLink
89- role = { image . role }
78+ < div
79+ css = { css `
80+ position : relative;
81+ ` }
82+ >
83+ < Picture
84+ alt = { image . data . alt ?? '' }
9085 format = { format }
91- elementId = { image . elementId }
92- isMainMedia = { false }
93- position = { image . position }
86+ role = { image . role }
87+ master = { asset . url }
88+ width = { width }
89+ height = { height }
90+ loading = "lazy"
9491 />
95- ) }
92+ { renderingTarget === 'Web' &&
93+ ! isUndefined ( image . position ) && (
94+ < LightboxLink
95+ role = { image . role }
96+ format = { format }
97+ elementId = { image . elementId }
98+ isMainMedia = { false }
99+ position = { image . position }
100+ />
101+ ) }
102+ </ div >
96103 </ div >
97104
98105 < GalleryCaption
You can’t perform that action at this time.
0 commit comments