Skip to content

Commit

Permalink
fix header icons
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Nov 19, 2024
1 parent f1086fa commit c4850e9
Showing 1 changed file with 41 additions and 37 deletions.
78 changes: 41 additions & 37 deletions src/widgets/copilot/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ const Header = () => {
>
<div
className="bot-avatar bg-primary gmr-8"
style={{ width: "24px", height: "24px", borderRadius: "100%" }}
style={{
width: "24px",
height: "24px",
borderRadius: "100%",
marginLeft: "-12px",
}}
>
<img
src={branding?.photoUrl}
Expand All @@ -59,44 +64,43 @@ const Header = () => {
</div>
<p className="font_16_700">{branding?.name}</p>
</div>
<div className="d-flex align-center">
{/* Focus mode button */}
{layoutController?.showFocusModeButton && (
<GooeyTooltip
text={
layoutController.isFocusMode ? "Disable Focus" : "Enable Focus"
}
direction="bottom"
>
<IconButton
variant="text"
className="cr-pointer"
onClick={layoutController?.toggleFocusMode}
style={{ transform: "rotate(90deg)" }}
>
{layoutController.isFocusMode ? (
<IconCollapse size={16} />
) : (
<IconExpand size={16} />
)}
</IconButton>
</GooeyTooltip>
)}
{/* Close / minimize button */}
</div>
<div>
{layoutController?.showCloseButton && (
<GooeyTooltip text="New Chat" direction="left" disabled={isEmpty}>
<IconButton
disabled={isEmpty}
variant="text"
className={clsx("gp-8 cr-pointer flex-1")}
onClick={layoutController?.toggleOpenClose}
<div className="d-flex align-center">
{/* Focus mode button */}
{layoutController?.showFocusModeButton && (
<GooeyTooltip
text={
layoutController.isFocusMode ? "Disable Focus" : "Enable Focus"
}
direction="bottom"
>
<IconChevronDown size={16} />
</IconButton>
</GooeyTooltip>
)}
<IconButton
variant="text"
className="cr-pointer"
onClick={layoutController?.toggleFocusMode}
style={{ transform: "rotate(90deg)" }}
>
{layoutController.isFocusMode ? (
<IconCollapse size={16} />
) : (
<IconExpand size={16} />
)}
</IconButton>
</GooeyTooltip>
)}
{/* Close / minimize button */}
{layoutController?.showCloseButton && (
<GooeyTooltip text="New Chat" direction="left" disabled={isEmpty}>
<IconButton
variant="text"
className={clsx("gp-8 cr-pointer flex-1")}
onClick={layoutController?.toggleOpenClose}
>
<IconChevronDown size={16} />
</IconButton>
</GooeyTooltip>
)}
</div>
</div>
</div>
);
Expand Down

0 comments on commit c4850e9

Please sign in to comment.