Skip to content

Commit 588ad75

Browse files
author
Guillaume Chau
committed
fix(ui): limit description length in plugin search
1 parent bf87ded commit 588ad75

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

packages/@vue/cli-ui/src/components/PackageSearchItem.vue

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
<span class="version">{{ pkg.version }}</span>
2626
</template>
2727
<template slot="description">
28-
<span class="info description">
28+
<span
29+
class="info description"
30+
v-tooltip="pkg.description"
31+
>
2932
<ais-highlight
3033
:result="pkg"
3134
attribute-name="description"
@@ -110,6 +113,9 @@ export default {
110113
.list-item-info
111114
flex 100% 1 1
112115
width 0
116+
>>> .description
117+
display inline-flex
118+
align-items baseline
113119
114120
.name
115121
font-weight bold
@@ -121,13 +127,18 @@ export default {
121127
.info
122128
space-between-x(6px)
123129
124-
.description
125-
font-style italic
130+
&.description
131+
font-style italic
132+
max-width 550px
133+
white-space nowrap
134+
text-overflow ellipsis
135+
display block
136+
overflow hidden
126137
127-
.downloads
128-
text-transform uppercase
138+
&.downloads
139+
text-transform uppercase
129140
130-
.owner
131-
.vue-ui-icon
132-
margin-right 2px
141+
&.owner
142+
.vue-ui-icon
143+
margin-right 2px
133144
</style>

0 commit comments

Comments
 (0)