Skip to content

Commit dd8ca2c

Browse files
committedOct 10, 2022
website: fix the version number display issue.
1 parent 15df512 commit dd8ca2c

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed
 

‎website/src/components/Markdown/Markdown.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const CodePreview = ({ inline, node, components, data, ...props }: CodeProps & C
3333
if (metaId && typeof Child === 'function') {
3434
const code = data[metaId].value || '';
3535
const param = getURLParameters(meta);
36-
console.log(':param:', param);
3736
return (
3837
<CodeLayout
3938
ref={$dom}
@@ -60,7 +59,6 @@ export default function Markdown(props: MarkdownProps) {
6059
return (
6160
<Fragment>
6261
<MarkdownPreview
63-
style={{ paddingTop: 30 }}
6462
source={props.source || ''}
6563
disableCopy
6664
warpperElement={{

‎website/src/layouts/BaseLayout.tsx

+18-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,23 @@ export default function Components(props: ComponentsProps) {
3232
</div>
3333
</Sider>
3434
<Content style={{ padding: 20 }} className={styles.layoutContent}>
35+
<Header
36+
style={{
37+
height: 'inherit',
38+
lineHeight: '32px',
39+
position: 'absolute',
40+
padding: '5px 10px',
41+
right: 10,
42+
marginTop: -10,
43+
display: 'flex',
44+
flexDirection: 'row',
45+
justifyContent: 'flex-end',
46+
backgroundColor: 'transparent',
47+
zIndex: 99,
48+
}}
49+
>
50+
<VersionSelect data={version} />
51+
</Header>
3552
<Outlet />
3653
</Content>
3754
</Layout>
@@ -77,7 +94,7 @@ export default function Components(props: ComponentsProps) {
7794
>
7895
<VersionSelect data={version} />
7996
</Header>
80-
<Content style={{ padding: 20 }} className={styles.layoutContent}>
97+
<Content style={{ padding: 20 }} data-ddd="xxx" className={styles.layoutContent}>
8198
<Outlet />
8299
</Content>
83100
</Layout>

0 commit comments

Comments
 (0)
Please sign in to comment.