@@ -153,7 +153,6 @@ const Dashboard: React.FC = () => {
153153
154154 const onHandlePanelStates = useCallback (
155155 ( panelName : string ) => {
156- dispatch ( hideCitation ( ) ) ;
157156 setLayoutWidthUpdated ( ( previousFlag ) => ! previousFlag ) ;
158157 const nextState = {
159158 ...panelShowStates ,
@@ -170,7 +169,7 @@ const Dashboard: React.FC = () => {
170169 updateLayoutWidths ( nextState ) ;
171170 setPanelShowStates ( nextState ) ;
172171 } ,
173- [ dispatch , panelShowStates , updateLayoutWidths ]
172+ [ panelShowStates , updateLayoutWidths ]
174173 ) ;
175174
176175 const getHistoryListData = useCallback ( async ( ) => {
@@ -303,15 +302,6 @@ const Dashboard: React.FC = () => {
303302 />
304303 </ div >
305304 ) }
306- { showCitation && currentConversationIdForCitation !== "" && (
307- < div
308- style = { {
309- width : `${ panelWidths [ panels . CHATHISTORY ] || 17 } %` ,
310- } }
311- >
312- < CitationPanel activeCitation = { activeCitation } />
313- </ div >
314- ) }
315305 { panelShowStates [ panels . CHAT ] &&
316306 panelShowStates [ panels . CHATHISTORY ] && (
317307 < div
@@ -331,6 +321,11 @@ const Dashboard: React.FC = () => {
331321 />
332322 </ div >
333323 ) }
324+ { showCitation && currentConversationIdForCitation !== "" && (
325+ < div className = "citation-panel-wrapper" >
326+ < CitationPanel activeCitation = { activeCitation } />
327+ </ div >
328+ ) }
334329 </ div >
335330 </ FluentProvider >
336331 ) ;
0 commit comments