mirror of
https://github.com/logto-io/logto.git
synced 2025-02-24 22:05:56 -05:00
refactor(console): fix undesired appearance for popup and tooltip (#2370)
This commit is contained in:
parent
33234264ed
commit
c0e9788ca9
3 changed files with 3 additions and 1 deletions
|
@ -54,6 +54,7 @@ const Dropdown = ({
|
|||
isFullWidth && anchorRef.current
|
||||
? anchorRef.current.getBoundingClientRect().width
|
||||
: undefined,
|
||||
...(!position && { opacity: 0 }),
|
||||
...position,
|
||||
},
|
||||
}}
|
||||
|
|
|
@ -56,6 +56,7 @@ const ToggleTip = ({
|
|||
isOpen={isOpen}
|
||||
style={{
|
||||
content: {
|
||||
...(!layoutPosition && { opacity: 0 }),
|
||||
...layoutPosition,
|
||||
},
|
||||
}}
|
||||
|
|
|
@ -130,7 +130,7 @@ const Tooltip = ({
|
|||
<TipBubble
|
||||
ref={tooltipRef}
|
||||
className={className}
|
||||
style={{ ...layoutPosition }}
|
||||
style={{ ...(!layoutPosition && { opacity: 0 }), ...layoutPosition }}
|
||||
position={position}
|
||||
horizontalAlignment={positionState.horizontalAlign}
|
||||
>
|
||||
|
|
Loading…
Add table
Reference in a new issue