File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import VisibleKey from "@/components/Common/VisibleKey";
88import source_default_img from "@/assets/images/source_default.png" ;
99import source_default_dark_img from "@/assets/images/source_default_dark.png" ;
1010import type { QueryHits } from "@/types/search" ;
11+ import { useAppStore } from "@/stores/appStore" ;
1112
1213interface SearchSourceProps {
1314 sourceName : string ;
@@ -29,6 +30,8 @@ export const SearchSource: React.FC<SearchSourceProps> = ({
2930 items [ 0 ] ?. document . category === "Calculator" ||
3031 items [ 0 ] ?. document . category === "AI Overview" ;
3132
33+ const isTauri = useAppStore ( ( state ) => state . isTauri ) ;
34+
3235 return (
3336 < div className = "p-2 text-xs text-[#999] dark:text-[#666] flex items-center gap-2.5 relative" >
3437 < CommonIcon
@@ -38,7 +41,7 @@ export const SearchSource: React.FC<SearchSourceProps> = ({
3841 defaultIcon = { isDark ? source_default_dark_img : source_default_img }
3942 className = "w-4 h-4"
4043 />
41- { sourceName } { items [ 0 ] ?. source ?. name && `- ${ items [ 0 ] . source . name } ` }
44+ { sourceName } { isTauri && items [ 0 ] ?. source ?. name && `- ${ items [ 0 ] . source . name } ` }
4245 < div className = "flex-1 border-b border-b-[#e6e6e6] dark:border-b-[#272626]" > </ div >
4346 { ! hideArrow && (
4447 < >
You can’t perform that action at this time.
0 commit comments