Skip to content
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
2 changes: 1 addition & 1 deletion projects/app/src/components/Select/AIModelSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const OneRowSelector = ({ list, onChange, disableTip, ...props }: Props) => {
fallbackSrc={HUGGING_FACE_ICON}
/>

<Box>{modelData.name}</Box>
<Box noOfLines={1}>{modelData.name}</Box>
</Flex>
)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const ChatInput = ({
gap={[0, 1]}
>
{/* 左侧自定义按钮组 */}
<Flex alignItems={'center'} gap={2} flex={'1 0 0'} w={0}>
<Flex alignItems={'center'} gap={2}>
{InputLeftComponent}
</Flex>

Expand Down
5 changes: 4 additions & 1 deletion projects/app/src/pageComponents/chat/ChatHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ const ChatHeader = ({
showHistory,
apps,
totalRecordsCount,

pane,
chatSettings
}: {
pane: ChatSidebarPaneEnum;
chatSettings: ChatSettingSchema | undefined;

history: ChatItemType[];
showHistory?: boolean;
apps?: AppListItemType[];
Expand All @@ -51,13 +53,14 @@ const ChatHeader = ({
const { t } = useTranslation();
const { isPc } = useSystem();
const pathname = usePathname();
const { source } = useChatStore();

const chatData = useContextSelector(ChatItemContext, (v) => v.chatBoxData);
const isVariableVisible = useContextSelector(ChatItemContext, (v) => v.isVariableVisible);

const isPlugin = chatData.app.type === AppTypeEnum.plugin;
const isChat = pathname === '/chat';
const isShare = pathname === '/chat/share';
const isShare = source === 'share';

return isPc && isPlugin ? null : (
<Flex
Expand Down
Loading
Loading