Skip to content

Commit

Permalink
Move the scrollbar and change title
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Dec 2, 2024
1 parent 1a7c521 commit 7726b2b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions common/views/components/RecommendedStories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,31 @@ const RecommendedSection = styled(Space).attrs({
`;

const StoryPromoContainer = styled(Container)`
padding: 0 24px;
padding: 0 24px ${props => props.theme.containerPadding.small}px;
max-width: none;
width: auto;
overflow: auto;
margin: 0 auto;
padding-bottom: ${props => props.theme.containerPadding.large}px;
margin-bottom: ${props => props.theme.containerPadding.medium}px;
${props =>
props.theme.media(
'medium',
'max-width'
)(`
padding-bottom: ${props.theme.containerPadding.small}px;
margin-bottom: ${props.theme.containerPadding.small}px;
`)}
&::-webkit-scrollbar {
background: ${props => props.theme.color('neutral.200')};
height: 18px;
}
&::-webkit-scrollbar-thumb {
border-radius: 0;
border-style: solid;
border-width: 0 ${props => props.theme.containerPadding.small}px 12px;
background: ${props => props.theme.color('neutral.400')};
border-color: ${props => props.theme.color('neutral.200')};
background: ${props => props.theme.color('neutral.300')};
border-color: ${props => props.theme.color('white')};
}
-webkit-overflow-scrolling: touch;
Expand Down Expand Up @@ -181,7 +180,7 @@ const RecommendedStories = () => {
return (
<RecommendedSection>
<h2 className={font('wb', 3)} style={{ padding: '16px 24px', margin: 0 }}>
Recommended articles
Popular stories
</h2>

<StoryPromoContainer>
Expand Down

0 comments on commit 7726b2b

Please sign in to comment.