Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wrong classname icon #3474

Merged
merged 2 commits into from
Aug 27, 2024
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
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
Loading