fix: restore missing category titles on subpages (#772)

This commit is contained in:
ayangweb
2025-07-18 16:25:44 +08:00
committed by GitHub
parent af0b98a41b
commit 823a95d601
2 changed files with 15 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ Information about release notes of Coco Server is provided here.
- fix(file search): searching by name&content does not search file name #743
- fix: prevent window from hiding when moved on Windows #748
- fix: unregister ext hotkey when it gets deleted #770
- fix: restore missing category titles on subpages #772
### ✈️ Improvements
@@ -330,4 +331,4 @@ Information about release notes of Coco Server is provided here.
### Bug fix
### Improvements
### Improvements

View File

@@ -66,13 +66,17 @@ export default function Footer({ setIsPinnedWeb }: FooterProps) {
const renderLeft = () => {
if (sourceData?.source?.name) {
return (
<CommonIcon
item={sourceData}
renderOrder={["connector_icon", "default_icon"]}
itemIcon={sourceData?.source?.icon}
defaultIcon={isDark ? source_default_dark_img : source_default_img}
className="w-4 h-4"
/>
<div className="flex items-center gap-2">
<CommonIcon
item={sourceData}
renderOrder={["connector_icon", "default_icon"]}
itemIcon={sourceData?.source?.icon}
defaultIcon={isDark ? source_default_dark_img : source_default_img}
className="w-4 h-4"
/>
<span className="text-sm">{sourceData.source.name}</span>
</div>
);
}
@@ -162,7 +166,8 @@ export default function Footer({ setIsPinnedWeb }: FooterProps) {
<span className="mr-1.5">
{goAskAi
? t("search.askCocoAi.continueInChat")
: (visibleExtensionStore || visibleExtensionDetail) && !selectedExtension?.installed
: (visibleExtensionStore || visibleExtensionDetail) &&
!selectedExtension?.installed
? t("search.footer.install")
: t("search.footer.select")}
</span>