@@ -29,8 +29,12 @@ import { ChatbotDisplayMode, ChatbotModal } from '@patternfly/chatbot';
2929import { LightspeedChatContainer } from './LightspeedChatContainer' ;
3030import { LightspeedDrawerContext } from './LightspeedDrawerContext' ;
3131
32- const useStyles = makeStyles ( ( ) => ( {
32+ const useStyles = makeStyles ( theme => ( {
3333 chatbotModal : {
34+ boxShadow :
35+ '0 14px 20px -7px rgba(0, 0, 0, 0.22), 0 32px 50px 6px rgba(0, 0, 0, 0.16), 0 12px 60px 12px rgba(0, 0, 0, 0.14) !important' ,
36+ bottom : `calc(${ theme ?. spacing ?.( 2 ) ?? '16px' } + 5em)` ,
37+ right : `calc(${ theme ?. spacing ?.( 2 ) ?? '16px' } + 1.5em)` ,
3438 // When docked drawer is open, adjust modal position
3539 'body.docked-drawer-open &' : {
3640 transition : 'margin-right 0.3s ease' ,
@@ -128,6 +132,10 @@ export const LightspeedDrawerProvider = ({ children }: PropsWithChildren) => {
128132 // Set display mode with route handling for embedded/fullscreen
129133 const setDisplayMode = useCallback (
130134 ( mode : ChatbotDisplayMode , conversationId ?: string ) => {
135+ if ( mode === displayModeState ) {
136+ return ;
137+ }
138+
131139 setDisplayModeState ( mode ) ;
132140
133141 // Navigate to fullscreen route with conversation ID if available
@@ -145,7 +153,7 @@ export const LightspeedDrawerProvider = ({ children }: PropsWithChildren) => {
145153 setIsOpen ( true ) ;
146154 }
147155 } ,
148- [ navigate , isLightspeedRoute , currentConversationIdState ] ,
156+ [ navigate , isLightspeedRoute , currentConversationIdState , displayModeState ] ,
149157 ) ;
150158
151159 // Only render ChatbotModal for overlay mode
0 commit comments