mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
feat: icons for chat identification (#879)
* Added endpoint picture * plugin icon fix & new minimalist icon * changed from BingAIMinimalIcon to BingAIMinimalistIcon * fix(Conversation) reduced the space between the icon and the title * refactor(getIcon & getMinimalIcon) * moved IconProps in ~/common * refactor(getIcon & getMinimalistIcon) from switch/case to map * fix(getIcon.tsx) renamed to Icon * renamed all from Minimalist to Minimal
This commit is contained in:
parent
6358383001
commit
2419af8748
18 changed files with 356 additions and 126 deletions
|
|
@ -8,7 +8,7 @@ import { SubRow, Plugin, MessageContent } from './Content';
|
|||
import MultiMessage from './MultiMessage';
|
||||
import HoverButtons from './HoverButtons';
|
||||
import SiblingSwitch from './SiblingSwitch';
|
||||
import { getIcon } from '~/components/Endpoints';
|
||||
import { Icon } from '~/components/Endpoints';
|
||||
import { useMessageHandler, useConversation } from '~/hooks';
|
||||
import type { TMessageProps } from '~/common';
|
||||
import { cn } from '~/utils';
|
||||
|
|
@ -90,7 +90,7 @@ export default function Message({
|
|||
titleclass: '',
|
||||
};
|
||||
|
||||
const icon = getIcon({
|
||||
const icon = Icon({
|
||||
...conversation,
|
||||
...message,
|
||||
model: message?.model ?? conversation?.model,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue