File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
app/components/version-list Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 98
98
99
99
<Tooltip local-class =" tooltip" >
100
100
<ul local-class =" feature-list" >
101
- {{ #each @version.featureList as |feature |}}
101
+ {{ #each this.features.list as |feature |}}
102
102
<li >
103
103
{{ svg-jar (if feature.isDefault " checkbox" " checkbox-empty" )}}
104
104
{{ feature.name }}
105
105
</li >
106
106
{{ /each }}
107
+ {{ #if this.features.more }}
108
+ <li local-class =" other-features" >
109
+ and {{ this.features.more }} other features
110
+ </li >
111
+ {{ /if }}
107
112
</ul >
108
113
</Tooltip >
109
114
</span >
Original file line number Diff line number Diff line change @@ -49,6 +49,13 @@ export default class VersionRow extends Component {
49
49
return this . args . version . crate . hasOwnerUser ( userId ) ;
50
50
}
51
51
52
+ get features ( ) {
53
+ let features = this . args . version . featureList ;
54
+ let list = features . slice ( 0 , 15 ) ;
55
+ let more = features . length - list . length ;
56
+ return { list, more } ;
57
+ }
58
+
52
59
@action setFocused ( value ) {
53
60
this . focused = value ;
54
61
}
Original file line number Diff line number Diff line change 230
230
}
231
231
}
232
232
233
+ .other-features {
234
+ font-style : italic;
235
+ margin-top : var (--space-2xs );
236
+ }
237
+
233
238
.yank-button {
234
239
position : relative;
235
240
margin-left : var (--space-xs );
You can’t perform that action at this time.
0 commit comments