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

View File

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