Skip to content

Commit

Permalink
fix: wrong classname icon (janhq#3474)
Browse files Browse the repository at this point in the history
* fix: fix wrong classname icon

* fix: button flashing on chat input
  • Loading branch information
urmauur authored Aug 27, 2024
1 parent c0ffd03 commit bc4bbd3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion web/containers/ModelDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,10 @@ const ModelDropdown = ({
<Badge
theme="secondary"
variant={open ? 'solid' : 'outline'}
className="cursor-pointer"
className={twMerge(
'cursor-pointer',
open && 'border border-transparent'
)}
onClick={() => setOpen(!open)}
>
<span className="line-clamp-1 ">{selectedModel?.name}</span>
Expand Down
6 changes: 5 additions & 1 deletion web/screens/Thread/ThreadCenterPanel/ChatInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,11 @@ const ChatInput = () => {
<ModelDropdown chatInputMode />
<Badge
theme="secondary"
className="flex cursor-pointer items-center gap-x-1"
className={twMerge(
'flex cursor-pointer items-center gap-x-1',
activeTabThreadRightPanel === 'model' &&
'border border-transparent'
)}
variant={
activeTabThreadRightPanel === 'model' ? 'solid' : 'outline'
}
Expand Down
4 changes: 2 additions & 2 deletions web/screens/Thread/ThreadLeftPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ const ThreadLeftPanel = () => {
>
<PencilIcon
size={16}
className="text-[hsla(var(--secondary))]"
className="text-[hsla(var(--text-secondary))]"
/>
<span className="text-bold text-[hsla(var(--secondary))]">
<span className="text-bold text-[hsla(var(--app-text-primary))]">
Edit title
</span>
</div>
Expand Down

0 comments on commit bc4bbd3

Please sign in to comment.