mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
fixed button in wallet-overview (#19920)
* fixed button in wallet-overview * lint fix * updated selector css with class
This commit is contained in:
parent
0ba409662e
commit
f17a841677
@ -28,13 +28,25 @@ export default function IconButton({
|
||||
{renderWrapper(
|
||||
<>
|
||||
<div className="icon-button__circle">{Icon}</div>
|
||||
<Text ellipsis variant={TextVariant.bodySm}>
|
||||
{label.length > 12 ? (
|
||||
<Tooltip title={label}>{label}</Tooltip>
|
||||
) : (
|
||||
label
|
||||
)}
|
||||
</Text>
|
||||
{label.length > 9 ? (
|
||||
<Tooltip title={label} position="bottom">
|
||||
<Text
|
||||
className="icon-button__label"
|
||||
ellipsis
|
||||
variant={TextVariant.bodySm}
|
||||
>
|
||||
{label}
|
||||
</Text>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<Text
|
||||
className="icon-button__label"
|
||||
ellipsis
|
||||
variant={TextVariant.bodySm}
|
||||
>
|
||||
{label}
|
||||
</Text>
|
||||
)}
|
||||
</>,
|
||||
)}
|
||||
</button>
|
||||
|
@ -29,4 +29,8 @@
|
||||
opacity: 0.3;
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
&__label {
|
||||
width: 60px; //for ellipsis keeping the width same as icon-button used here
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user