@@ -43,7 +43,7 @@ function withLastActiveFallback(cb: () => string): string {
4343const KeylessPromptInternal = ( _props : KeylessPromptProps ) => {
4444 const { isSignedIn } = useUser ( ) ;
4545 const [ isExpanded , setIsExpanded ] = useState ( false ) ;
46- const { isDragging, cornerStyle, containerRef, onPointerDown, preventClick } = useDragToCorner ( ) ;
46+ const { isDragging, cornerStyle, containerRef, onPointerDown, preventClick, isInitialized } = useDragToCorner ( ) ;
4747
4848 useEffect ( ( ) => {
4949 if ( isSignedIn ) {
@@ -122,6 +122,7 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
122122 style = { {
123123 ...cornerStyle ,
124124 position : 'fixed' ,
125+ opacity : isInitialized ? undefined : 0 ,
125126 } }
126127 sx = { t => ( {
127128 height : `${ t . sizes . $10 } ` ,
@@ -133,8 +134,8 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
133134 transition : isDragging
134135 ? 'none'
135136 : isForcedExpanded
136- ? 'height 230ms cubic-bezier(0.28, 1, 0.32, 1), width 230ms cubic-bezier(0.28, 1, 0.32, 1), padding 230ms cubic-bezier(0.28, 1, 0.32, 1), border-radius 230ms cubic-bezier(0.28, 1, 0.32, 1)'
137- : 'height 195ms cubic-bezier(0.2, 0.61, 0.1, 1), width 195ms cubic-bezier(0.2, 0.61, 0.1, 1), padding 195ms cubic-bezier(0.2, 0.61, 0.1, 1), border-radius 195ms cubic-bezier(0.2, 0.61, 0.1, 1)' ,
137+ ? 'opacity 150ms ease-out, height 230ms cubic-bezier(0.28, 1, 0.32, 1), width 230ms cubic-bezier(0.28, 1, 0.32, 1), padding 230ms cubic-bezier(0.28, 1, 0.32, 1), border-radius 230ms cubic-bezier(0.28, 1, 0.32, 1)'
138+ : 'opacity 150ms ease-out, height 195ms cubic-bezier(0.2, 0.61, 0.1, 1), width 195ms cubic-bezier(0.2, 0.61, 0.1, 1), padding 195ms cubic-bezier(0.2, 0.61, 0.1, 1), border-radius 195ms cubic-bezier(0.2, 0.61, 0.1, 1)' ,
138139
139140 '&[data-expanded="false"]:hover' : {
140141 background : 'linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 100%), #1f1f1f' ,
0 commit comments