Skip to content

Commit

Permalink
website: fix the version number display issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 10, 2022
1 parent 15df512 commit dd8ca2c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 0 additions & 2 deletions website/src/components/Markdown/Markdown.tsx
Expand Up @@ -33,7 +33,6 @@ const CodePreview = ({ inline, node, components, data, ...props }: CodeProps & C
if (metaId && typeof Child === 'function') {
const code = data[metaId].value || '';
const param = getURLParameters(meta);
console.log(':param:', param);
return (
<CodeLayout
ref={$dom}
Expand All @@ -60,7 +59,6 @@ export default function Markdown(props: MarkdownProps) {
return (
<Fragment>
<MarkdownPreview
style={{ paddingTop: 30 }}
source={props.source || ''}
disableCopy
warpperElement={{
Expand Down
19 changes: 18 additions & 1 deletion website/src/layouts/BaseLayout.tsx
Expand Up @@ -32,6 +32,23 @@ export default function Components(props: ComponentsProps) {
</div>
</Sider>
<Content style={{ padding: 20 }} className={styles.layoutContent}>
<Header
style={{
height: 'inherit',
lineHeight: '32px',
position: 'absolute',
padding: '5px 10px',
right: 10,
marginTop: -10,
display: 'flex',
flexDirection: 'row',
justifyContent: 'flex-end',
backgroundColor: 'transparent',
zIndex: 99,
}}
>
<VersionSelect data={version} />
</Header>
<Outlet />
</Content>
</Layout>
Expand Down Expand Up @@ -77,7 +94,7 @@ export default function Components(props: ComponentsProps) {
>
<VersionSelect data={version} />
</Header>
<Content style={{ padding: 20 }} className={styles.layoutContent}>
<Content style={{ padding: 20 }} data-ddd="xxx" className={styles.layoutContent}>
<Outlet />
</Content>
</Layout>
Expand Down

0 comments on commit dd8ca2c

Please sign in to comment.