Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 64ef306

Browse files
committed
fixed weired padding
1 parent e788090 commit 64ef306

File tree

2 files changed

+2
-3
lines changed
  • src/_pages/LandingPage/components/StraightforwardView/components/SectionScroller/components/SectionLeftItem

2 files changed

+2
-3
lines changed

src/_pages/LandingPage/components/StraightforwardView/components/SectionScroller/components/SectionLeftItem/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ const SectionLeftItem: React.FC<Props> = (props) => {
2020
className={clsx(styles.Container, {
2121
[styles.Container_Active]: active,
2222
})}>
23-
<CodeBlock style={{ marginBottom: 0 }} className={'javascript'}>
24-
{code}
25-
</CodeBlock>
23+
<CodeBlock className={'javascript'}>{code}</CodeBlock>
2624
</div>
2725
);
2826
};

src/_pages/LandingPage/components/StraightforwardView/components/SectionScroller/components/SectionLeftItem/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
transform: translateZ(0);
66
border-radius: 8px;
77
transition: top 100ms cubic-bezier(0.17, 0.67, 0.83, 0.67);
8+
--ifm-leading: 0; /* because of weired margin of codeblock */
89
}
910

1011
.Container:not(:last-child) {

0 commit comments

Comments
 (0)