Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions src/App/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
height: calc(100vh - var(--header-height));
gap: var(--gap-base);
margin-inline: var(--margin-base);
overflow: hidden;
}

.main-container > div {
Expand Down Expand Up @@ -51,21 +52,17 @@ body {
font-weight: 400;
}

.citation-overlay {
position: fixed;
top: var(--header-height);
right: 0;
width: 20%;
min-width: 280px;
.citation-panel-wrapper {
flex: 0 1 20%;
min-width: 200px;
max-width: 400px;
height: calc(100vh - var(--header-height));
z-index: 100;
pointer-events: none;
box-sizing: border-box;
margin-block: var(--margin-base);
overflow: hidden;
}

.citation-overlay > * {
pointer-events: auto;
.citation-panel-wrapper .citationPanel {
height: 100%;
box-sizing: border-box;
}

.left-section {
Expand Down
16 changes: 10 additions & 6 deletions src/App/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,14 @@ const Dashboard: React.FC = () => {
nextState[panels.CHAT] = true;
}

if (panelName === panels.CHAT && !nextState[panels.CHAT]) {
dispatch(hideCitation());
}

updateLayoutWidths(nextState);
setPanelShowStates(nextState);
},
[panelShowStates, updateLayoutWidths]
[dispatch, panelShowStates, updateLayoutWidths]
);

const getHistoryListData = useCallback(async () => {
Expand Down Expand Up @@ -302,6 +306,11 @@ const Dashboard: React.FC = () => {
/>
</div>
)}
{showCitation && currentConversationIdForCitation !== "" && (
<div className="citation-panel-wrapper">
<CitationPanel activeCitation={activeCitation} />
</div>
)}
Comment thread
Yamini-Microsoft marked this conversation as resolved.
{panelShowStates[panels.CHAT] &&
panelShowStates[panels.CHATHISTORY] && (
<div
Expand All @@ -322,11 +331,6 @@ const Dashboard: React.FC = () => {
</div>
)}
</div>
{showCitation && currentConversationIdForCitation !== "" && (
<section className="citation-overlay" aria-label="Citation panel">
<CitationPanel activeCitation={activeCitation} />
</section>
)}
</FluentProvider>
);
};
Expand Down
Loading