File tree Expand file tree Collapse file tree 3 files changed +8
-30
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 3 files changed +8
-30
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export const GalleryCaption = ({
94
94
format = { format }
95
95
pageId = { pageId }
96
96
webTitle = { webTitle }
97
- context = "ArticleMeta" // TODO: update context to GalleryImage
97
+ context = "ArticleMeta"
98
98
/>
99
99
</ Island >
100
100
</ figcaption >
Original file line number Diff line number Diff line change @@ -16,43 +16,17 @@ type Props = {
16
16
} ;
17
17
18
18
const styles = css `
19
- ${ grid . container }
19
+ ${ grid . paddedContainer }
20
20
grid-auto-flow : row dense;
21
- column-gap : ${ space [ 5 ] } px;
22
21
23
22
${ until . tablet } {
24
23
border-top : 1px solid ${ palette ( '--article-border' ) } ;
25
24
padding-top : ${ space [ 1 ] } px;
26
25
}
27
26
28
27
${ from . tablet } {
29
- & ::before {
30
- ${ grid . between ( 'grid-start' , 'centre-column-start' ) }
31
- grid-row : span 2 ;
32
- content : '' ;
33
- background-color : ${ palette ( '--article-background' ) } ;
34
- border-right : 1px solid ${ palette ( '--article-border' ) } ;
35
- }
36
-
37
- & ::after {
38
- ${ grid . between ( 'centre-column-end' , 'grid-end' ) }
39
- grid-row : span 2 ;
40
- content : '' ;
41
- background-color : ${ palette ( '--article-background' ) } ;
42
- border-left : 1px solid ${ palette ( '--article-border' ) } ;
43
- }
44
- }
45
-
46
- ${ from . desktop } {
47
- & ::after {
48
- ${ grid . between ( 'right-column-end' , 'grid-end' ) }
49
- }
50
- }
51
-
52
- ${ from . leftCol } {
53
- & ::before {
54
- ${ grid . between ( 'grid-start' , 'left-column-start' ) }
55
- }
28
+ border-left : 1px solid ${ palette ( '--article-border' ) } ;
29
+ border-right : 1px solid ${ palette ( '--article-border' ) } ;
56
30
}
57
31
` ;
58
32
Original file line number Diff line number Diff line change @@ -488,6 +488,10 @@ const galleryBodyImageStyles = css`
488
488
}
489
489
` ;
490
490
491
+ /**
492
+ * This ensures that the image height never goes above 96vh.
493
+ * The ratio parameter should be width:height.
494
+ */
491
495
const imageMaxWidth = (
492
496
design : ArticleDesign ,
493
497
ratio : number ,
You can’t perform that action at this time.
0 commit comments