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`
36
36
` ;
37
37
38
38
const galleryBodyImageStyles = css `
39
+ display : flex;
39
40
${ grid . column . all }
40
- position : relative;
41
41
42
42
${ from . tablet } {
43
43
${ grid . column . centre }
@@ -75,24 +75,31 @@ export const GalleryImage = ({
75
75
return (
76
76
< figure css = { styles } >
77
77
< 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 ?? '' }
90
85
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"
94
91
/>
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 >
96
103
</ div >
97
104
98
105
< GalleryCaption
You can’t perform that action at this time.
0 commit comments