diff --git a/src/components/CopyBlock/index.tsx b/src/components/CopyBlock/index.tsx
index 2292078ed489f1886571009b7cfc300254a155be..9ee05ae8739bd1f254aad654f0fe0911feebad7e 100644
--- a/src/components/CopyBlock/index.tsx
+++ b/src/components/CopyBlock/index.tsx
@@ -1,7 +1,7 @@
import { Icon, Popover, Typography } from 'antd';
import { FormattedMessage } from 'umi-plugin-react/locale';
-import React from 'react';
+import React, { useRef } from 'react';
import { connect } from 'dva';
import { isAntDesignPro } from '@/utils/utils';
import styles from './index.less';
@@ -41,8 +41,13 @@ const BlockCodeView: React.SFC<{
text: blockUrl,
onCopy: () => onBlockCopy(url),
}}
+ style={{
+ display: 'flex',
+ }}
>
- {blockUrl}
+
+ {blockUrl}
+
);
@@ -58,14 +63,16 @@ export default connect(({ routing }: { routing: RoutingType }) => ({
location: routing.location,
}))(({ location }: RoutingType) => {
const url = location.pathname;
+ const divDom = useRef