File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -84,22 +84,19 @@ const listStyles = css`
8484 background-repeat : no-repeat;
8585` ;
8686
87- const listWrapper = ( design : ArticleDesign ) : SerializedStyles => {
88- if ( design === ArticleDesign . Gallery ) {
89- return css `
90- ${ grid . column . centre }
91- padding-bottom : 0.75rem ;
92- margin-bottom : 6px ;
93- border-bottom : 1px solid ${ palette ( '--article-border' ) } ;
94- ` ;
95- }
87+ const listWrapper = css `
88+ padding-bottom : 0.75rem ;
89+ margin-bottom : 6px ;
90+ border-bottom : 1px solid ${ palette ( '--article-border' ) } ;
91+ ` ;
9692
97- return css `
98- padding-bottom : 0.75rem ;
99- margin-bottom : 6px ;
100- border-bottom : 1px solid ${ palette ( '--article-border' ) } ;
101- ` ;
102- } ;
93+ const galleryWrapperStyles = css `
94+ ${ grid . column . centre }
95+
96+ ${ from . leftCol } {
97+ ${ grid . between ( 'centre-column-start' , 'right-column-end' ) }
98+ }
99+ ` ;
103100
104101const listItemStyles = css `
105102 ${ textSans14 } ;
@@ -257,7 +254,13 @@ export const SubMeta = ({
257254 < span css = { labelStyles ( format . design ) } >
258255 Explore more on these topics
259256 </ span >
260- < div css = { listWrapper ( format . design ) } >
257+ < div
258+ css = { [
259+ listWrapper ,
260+ format . design == ArticleDesign . Gallery &&
261+ galleryWrapperStyles ,
262+ ] }
263+ >
261264 < ul css = { listStyles } >
262265 { links . map ( ( link ) => (
263266 < li css = { listItemStyles } key = { link . url } >
You can’t perform that action at this time.
0 commit comments