Skip to content

Commit 823a95d

Browse files
authored
fix: restore missing category titles on subpages (#772)
1 parent af0b98a commit 823a95d

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

docs/content.en/docs/release-notes/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Information about release notes of Coco Server is provided here.
2424
- fix(file search): searching by name&content does not search file name #743
2525
- fix: prevent window from hiding when moved on Windows #748
2626
- fix: unregister ext hotkey when it gets deleted #770
27+
- fix: restore missing category titles on subpages #772
2728

2829
### ✈️ Improvements
2930

@@ -330,4 +331,4 @@ Information about release notes of Coco Server is provided here.
330331

331332
### Bug fix
332333

333-
### Improvements
334+
### Improvements

src/components/Common/UI/Footer.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,17 @@ export default function Footer({ setIsPinnedWeb }: FooterProps) {
6666
const renderLeft = () => {
6767
if (sourceData?.source?.name) {
6868
return (
69-
<CommonIcon
70-
item={sourceData}
71-
renderOrder={["connector_icon", "default_icon"]}
72-
itemIcon={sourceData?.source?.icon}
73-
defaultIcon={isDark ? source_default_dark_img : source_default_img}
74-
className="w-4 h-4"
75-
/>
69+
<div className="flex items-center gap-2">
70+
<CommonIcon
71+
item={sourceData}
72+
renderOrder={["connector_icon", "default_icon"]}
73+
itemIcon={sourceData?.source?.icon}
74+
defaultIcon={isDark ? source_default_dark_img : source_default_img}
75+
className="w-4 h-4"
76+
/>
77+
78+
<span className="text-sm">{sourceData.source.name}</span>
79+
</div>
7680
);
7781
}
7882

@@ -162,7 +166,8 @@ export default function Footer({ setIsPinnedWeb }: FooterProps) {
162166
<span className="mr-1.5">
163167
{goAskAi
164168
? t("search.askCocoAi.continueInChat")
165-
: (visibleExtensionStore || visibleExtensionDetail) && !selectedExtension?.installed
169+
: (visibleExtensionStore || visibleExtensionDetail) &&
170+
!selectedExtension?.installed
166171
? t("search.footer.install")
167172
: t("search.footer.select")}
168173
</span>

0 commit comments

Comments
 (0)