File tree 2 files changed +25
-11
lines changed
src/apps/copilots/src/pages/copilot-opportunity-list
2 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,29 @@ const tableColumns: TableColumn<CopilotOpportunity>[] = [
42
42
isSortable : false ,
43
43
label : 'Skills Required' ,
44
44
propertyName : 'skills' ,
45
- renderer : ( copilotOpportunity : CopilotOpportunity ) => (
46
- < div className = { styles . skillsContainer } >
47
- { copilotOpportunity . skills . map ( ( skill : any ) => (
48
- < div key = { skill . id } className = { styles . skillPill } >
49
- { skill . name }
50
- </ div >
51
- ) ) }
52
- </ div >
53
- ) ,
45
+ renderer : ( copilotOpportunity : CopilotOpportunity ) => {
46
+ const visibleSkills = copilotOpportunity . skills . slice ( 0 , 3 )
47
+ const remainingSkills = copilotOpportunity . skills . slice ( 3 )
48
+ return (
49
+ < div className = { styles . skillsContainer } >
50
+ { visibleSkills . map ( ( skill : { id : string | number ; name : string } ) => (
51
+ < div key = { skill . id } className = { styles . skillPill } >
52
+ { skill . name }
53
+ </ div >
54
+ ) ) }
55
+ { remainingSkills . length > 0 && (
56
+ < div
57
+ className = { styles . skillPill }
58
+ title = { remainingSkills . map ( skill => skill . name )
59
+ . join ( ', ' ) }
60
+ >
61
+ +
62
+ { remainingSkills . length }
63
+ </ div >
64
+ ) }
65
+ </ div >
66
+ )
67
+ } ,
54
68
type : 'element' ,
55
69
} ,
56
70
{
Original file line number Diff line number Diff line change 8
8
}
9
9
10
10
.skillPill {
11
- background-color : #aaaaaa ;
11
+ background-color : #d6d6d6 ;
12
12
color : #333 ;
13
13
padding : 4px 8px ;
14
14
border-radius : 10px ;
15
15
white-space : break- spaces;
16
- font-size : 14 px ;
16
+ font-size : 11 px ;
17
17
}
18
18
19
19
.status {
You can’t perform that action at this time.
0 commit comments