Skip to content

Commit c726c30

Browse files
authored
fix(web): keep opencode icon hollow in collapsed composer (pingdotgg#9492)
Co-authored-by: maria-rcks <[email protected]>
1 parent 678f23a commit c726c30

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

‎apps/web/src/components/Icons.tsx‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,19 @@ export const AntigravityIcon: Icon = (props) => (
653653
export const OpenCodeIcon: Icon = (props) => (
654654
<svg {...props} viewBox="0 0 32 40" fill="none" xmlns="http://www.w3.org/2000/svg">
655655
<g clipPath="url(#opencode__clip0_1311_94969)">
656-
<path className="dark:hidden" d="M24 32H8V16H24V32Z" fill="#CFCECD" />
656+
<path
657+
data-opencode-hole="true"
658+
className="dark:hidden"
659+
d="M24 32H8V16H24V32Z"
660+
fill="#CFCECD"
661+
/>
657662
<path className="dark:hidden" d="M24 8H8V32H24V8ZM32 40H0V0H32V40Z" fill="#211E1E" />
658-
<path className="hidden dark:block" d="M24 32H8V16H24V32Z" fill="#4B4646" />
663+
<path
664+
data-opencode-hole="true"
665+
className="hidden dark:block"
666+
d="M24 32H8V16H24V32Z"
667+
fill="#4B4646"
668+
/>
659669
<path className="hidden dark:block" d="M24 8H8V32H24V8ZM32 40H0V0H32V40Z" fill="#F1ECEC" />
660670
</g>
661671
<defs>

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3808,7 +3808,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
38083808
activeProviderIconClassName: cn(
38093809
composerProviderState.modelPickerIconClassName,
38103810
composerControlsInStrip &&
3811-
"fill-muted-foreground/70! text-muted-foreground/70! [&_path]:fill-muted-foreground/70! [&_rect]:fill-muted-foreground/70!",
3811+
"fill-muted-foreground/70! text-muted-foreground/70! [&_path]:fill-muted-foreground/70! [&_rect]:fill-muted-foreground/70! [&_[data-opencode-hole]]:fill-transparent!",
38123812
),
38133813
}
38143814
: {})}

0 commit comments

Comments
 (0)