File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed
packages/web/src/app/[domain]/components Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+ - Changed repository link in search to file tree + move external link to code host logo. [ #340 ] ( https://github.com/sourcebot-dev/sourcebot/pull/340 )
12
+
10
13
## [ 4.2.0] - 2025-06-09
11
14
12
15
### Added
Original file line number Diff line number Diff line change @@ -223,22 +223,27 @@ export const PathHeader = ({
223
223
return (
224
224
< div className = "flex flex-row gap-2 items-center w-full overflow-hidden" >
225
225
{ info ?. icon ? (
226
- < Image
227
- src = { info . icon }
228
- alt = { info . codeHostName }
229
- className = { `w-4 h-4 ${ info . iconClassName } ` }
230
- />
231
- ) : (
226
+ < a href = { info . repoLink } target = "_blank" rel = "noopener noreferrer" >
227
+ < Image
228
+ src = { info . icon }
229
+ alt = { info . codeHostName }
230
+ className = { `w-4 h-4 ${ info . iconClassName } ` }
231
+ />
232
+ </ a >
233
+ ) : (
232
234
< LaptopIcon className = "w-4 h-4" />
233
235
) }
234
- < Link
235
- className = { clsx ( "font-medium" , {
236
- "cursor-pointer hover:underline" : info ?. repoLink ,
236
+ < div
237
+ className = "font-medium cursor-pointer hover:underline"
238
+ onClick = { ( ) => navigateToPath ( {
239
+ repoName : repo . name ,
240
+ path : '' ,
241
+ pathType : 'blob' ,
242
+ revisionName : branchDisplayName ,
237
243
} ) }
238
- href = { info ?. repoLink ?? "" }
239
244
>
240
245
{ info ?. displayName }
241
- </ Link >
246
+ </ div >
242
247
{ branchDisplayName && (
243
248
< p
244
249
className = "text-xs font-semibold text-gray-500 dark:text-gray-400 mt-[3px] flex items-center gap-0.5"
You can’t perform that action at this time.
0 commit comments