File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
packages/web/src/app/[domain]/search/components/filterPanel Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
- Added seperate page for signup. [ #311 ] ( https://github.com/sourcebot-dev/sourcebot/pull/331 )
12
12
- Fix repo images in authed instance case and add manifest json. [ #332 ] ( https://github.com/sourcebot-dev/sourcebot/pull/332 )
13
13
- Added encryption logic for license keys. [ #335 ] ( https://github.com/sourcebot-dev/sourcebot/pull/335 )
14
+ - Added hover tooltip for long repo names in filter panel. [ #338 ] ( https://github.com/sourcebot-dev/sourcebot/pull/338 )
14
15
- Added repo shard validation on startup. [ #339 ] ( https://github.com/sourcebot-dev/sourcebot/pull/339 )
15
16
- Added support for a file explorer when browsing files. [ #336 ] ( https://github.com/sourcebot-dev/sourcebot/pull/336 )
16
17
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
+ import { Tooltip , TooltipTrigger , TooltipContent } from "@/components/ui/tooltip" ;
3
4
import { QuestionMarkCircledIcon } from "@radix-ui/react-icons" ;
4
5
import clsx from "clsx" ;
5
6
@@ -44,13 +45,22 @@ export const Entry = ({
44
45
) }
45
46
onClick = { ( ) => onClicked ( ) }
46
47
>
47
- < div className = "flex flex-row items-center gap-1 overflow-hidden" >
48
+ < div className = "flex flex-row items-center gap-1 overflow-hidden min-w-0 " >
48
49
{ Icon ? Icon : (
49
50
< QuestionMarkCircledIcon className = "w-4 h-4 flex-shrink-0" />
50
51
) }
51
- < p className = "overflow-hidden text-ellipsis whitespace-nowrap" > { displayName } </ p >
52
+ < div className = "overflow-hidden flex-1 min-w-0" >
53
+ < Tooltip >
54
+ < TooltipTrigger asChild >
55
+ < p className = "overflow-hidden text-ellipsis whitespace-nowrap truncate-start" > { displayName } </ p >
56
+ </ TooltipTrigger >
57
+ < TooltipContent side = "right" className = "max-w-sm" >
58
+ < p className = "font-mono text-sm break-all whitespace-pre-wrap" > { displayName } </ p >
59
+ </ TooltipContent >
60
+ </ Tooltip >
61
+ </ div >
52
62
</ div >
53
- < div className = "px-2 py-0.5 bg-accent text-sm rounded-md" >
63
+ < div className = "px-2 py-0.5 bg-accent text-sm rounded-md flex-shrink-0 " >
54
64
{ countText }
55
65
</ div >
56
66
</ div >
You can’t perform that action at this time.
0 commit comments