0
Fork 0
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:
Gao Sun 2022-11-09 23:05:10 +08:00 committed by GitHub
parent 33234264ed
commit c0e9788ca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -54,6 +54,7 @@ const Dropdown = ({
isFullWidth && anchorRef.current
? anchorRef.current.getBoundingClientRect().width
: undefined,
...(!position && { opacity: 0 }),
...position,
},
}}

View file

@ -56,6 +56,7 @@ const ToggleTip = ({
isOpen={isOpen}
style={{
content: {
...(!layoutPosition && { opacity: 0 }),
...layoutPosition,
},
}}

View file

@ -130,7 +130,7 @@ const Tooltip = ({
<TipBubble
ref={tooltipRef}
className={className}
style={{ ...layoutPosition }}
style={{ ...(!layoutPosition && { opacity: 0 }), ...layoutPosition }}
position={position}
horizontalAlignment={positionState.horizontalAlign}
>