File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 height : calc (100vh - var (--header-height ));
1414 gap : var (--gap-base );
1515 margin-inline : var (--margin-base );
16+ overflow : hidden;
1617}
1718
1819.main-container > div {
@@ -51,21 +52,17 @@ body {
5152 font-weight : 400 ;
5253}
5354
54- .citation-overlay {
55- position : fixed;
56- top : var (--header-height );
57- right : 0 ;
58- width : 20% ;
59- min-width : 280px ;
55+ .citation-panel-wrapper {
56+ flex : 0 1 20% ;
57+ min-width : 200px ;
6058 max-width : 400px ;
61- height : calc (100vh - var (--header-height ));
62- z-index : 100 ;
63- pointer-events : none;
64- box-sizing : border-box;
59+ margin-block : var (--margin-base );
60+ overflow : hidden;
6561}
6662
67- .citation-overlay > * {
68- pointer-events : auto;
63+ .citation-panel-wrapper .citationPanel {
64+ height : 100% ;
65+ box-sizing : border-box;
6966}
7067
7168.left-section {
Original file line number Diff line number Diff line change @@ -166,10 +166,14 @@ const Dashboard: React.FC = () => {
166166 nextState [ panels . CHAT ] = true ;
167167 }
168168
169+ if ( panelName === panels . CHAT && ! nextState [ panels . CHAT ] ) {
170+ dispatch ( hideCitation ( ) ) ;
171+ }
172+
169173 updateLayoutWidths ( nextState ) ;
170174 setPanelShowStates ( nextState ) ;
171175 } ,
172- [ panelShowStates , updateLayoutWidths ]
176+ [ dispatch , panelShowStates , updateLayoutWidths ]
173177 ) ;
174178
175179 const getHistoryListData = useCallback ( async ( ) => {
@@ -302,6 +306,11 @@ const Dashboard: React.FC = () => {
302306 />
303307 </ div >
304308 ) }
309+ { showCitation && currentConversationIdForCitation !== "" && (
310+ < div className = "citation-panel-wrapper" >
311+ < CitationPanel activeCitation = { activeCitation } />
312+ </ div >
313+ ) }
305314 { panelShowStates [ panels . CHAT ] &&
306315 panelShowStates [ panels . CHATHISTORY ] && (
307316 < div
@@ -322,11 +331,6 @@ const Dashboard: React.FC = () => {
322331 </ div >
323332 ) }
324333 </ div >
325- { showCitation && currentConversationIdForCitation !== "" && (
326- < section className = "citation-overlay" aria-label = "Citation panel" >
327- < CitationPanel activeCitation = { activeCitation } />
328- </ section >
329- ) }
330334 </ FluentProvider >
331335 ) ;
332336} ;
You can’t perform that action at this time.
0 commit comments