Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions dotcom-rendering/src/components/ArticleHeadline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -874,10 +874,15 @@ export const ArticleHeadline = ({
case ArticleDesign.Picture:
return (
<div
css={decideBottomPadding({
format,
hasAvatar,
})}
css={[
decideBottomPadding({
format,
hasAvatar,
}),
css`
max-width: 620px;
`,
]}
>
<DesignTag format={format} />
<h1
Expand Down
28 changes: 15 additions & 13 deletions dotcom-rendering/src/components/DecideLines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,20 @@ const DottedLines = ({
export const DecideLines = ({ format, color }: Props) => {
const count = format.design === ArticleDesign.Comment ? 8 : 4;

switch (format.theme) {
case Pillar.Sport:
return <DottedLines count={count} color={color} />;
default:
return (
<StraightLines
cssOverrides={css`
display: block;
`}
count={count}
color={color}
/>
);
if (
format.theme === Pillar.Sport &&
format.design !== ArticleDesign.Picture
) {
return <DottedLines count={count} color={color} />;
}

return (
<StraightLines
cssOverrides={css`
display: block;
`}
count={count}
color={color}
/>
);
};
7 changes: 7 additions & 0 deletions dotcom-rendering/src/components/MainMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ const chooseWrapper = (format: ArticleFormat) => {
return noGutters;
}
}
case ArticleDisplay.Showcase:
switch (format.design) {
case ArticleDesign.Picture:
return '';
default:
return noGutters;
}
default:
return noGutters;
}
Expand Down
20 changes: 0 additions & 20 deletions dotcom-rendering/src/layouts/DecideLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { ImmersiveLayout } from './ImmersiveLayout';
import { InteractiveLayout } from './InteractiveLayout';
import { LiveLayout } from './LiveLayout';
import { NewsletterSignupLayout } from './NewsletterSignupLayout';
import { PictureLayout } from './PictureLayout';
import { StandardLayout } from './StandardLayout';

interface BaseProps {
Expand Down Expand Up @@ -91,15 +90,6 @@ const DecideLayoutApps = ({ article, renderingTarget }: AppProps) => {
serverTime={serverTime}
/>
);
case ArticleDesign.Picture:
return (
<PictureLayout
article={article.frontendData}
format={format}
renderingTarget={renderingTarget}
serverTime={serverTime}
/>
);
default:
return (
<StandardLayout
Expand Down Expand Up @@ -273,16 +263,6 @@ const DecideLayoutWeb = ({ article, NAV, renderingTarget }: WebProps) => {
serverTime={serverTime}
/>
);
case ArticleDesign.Picture:
return (
<PictureLayout
article={article.frontendData}
NAV={NAV}
format={format}
renderingTarget={renderingTarget}
serverTime={serverTime}
/>
);
default:
return (
<StandardLayout
Expand Down
Loading
Loading