Skip to content

Commit

Permalink
close sources pane on new chat
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Nov 7, 2024
1 parent cbdca85 commit 39007ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/shared/Layout/SideNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ const SideNavbar = () => {
<Button
className="w-100 pos-relative text-dark"
disabled={isEmpty}
onClick={handleNewConversation}
onClick={() => {
handleNewConversation();
if (layoutController?.isSecondaryDrawerOpen)
layoutController?.toggleSecondaryDrawer(null);
}}
hideOverflow
RightIconComponent={() => <IconPencilEdit size={18} />}
>
Expand Down
5 changes: 4 additions & 1 deletion src/widgets/copilot/components/Messages/Sources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export const FullSourcePreview = (props: any) => {
if (isLoading) return null;
return (
<div className="flex-1 d-flex flex-col">
<div className="b-lt-1 b-rt-1 b-btm-1 gp-10 w-100 d-flex justify-between align-center bg-white">
<div
className="b-lt-1 b-rt-1 b-btm-1 gp-10 w-100 d-flex justify-between align-center bg-white"
style={{ height: "56px" }}
>
<div className="d-flex align-center" style={{ maxWidth: "90%" }}>
{ExtensionIcon || !metaData?.logo ? (
<ExtensionIcon />
Expand Down

0 comments on commit 39007ab

Please sign in to comment.