fix: update the click area of the id link

Reduce the click area of the id link, change the style from block to inline-block to update the click area

Change-Id: I4bfa45c28d6a5e910c802a807ffe3f9b71732c04
This commit is contained in:
zhangjingwei 2022-10-17 17:39:20 +08:00
parent a17edb45fd
commit a29d9dacd3
2 changed files with 5 additions and 1 deletions

View File

@ -214,4 +214,8 @@
.no-margin-bottom { .no-margin-bottom {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
.inline-block {
display: inline-block;
}
} }

View File

@ -183,7 +183,7 @@ export const getIdRender = (value, copyable = true, isLink = true) => {
return ( return (
<Paragraph <Paragraph
copyable={{ text: value }} copyable={{ text: value }}
className={classnames('no-wrap', 'no-margin-bottom')} className={classnames('no-wrap', 'no-margin-bottom', 'inline-block')}
onClick={onClick} onClick={onClick}
> >
{shortRender} {shortRender}