File tree 3 files changed +54
-8
lines changed
3 files changed +54
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ export default async function installPlugin(
30
30
isDependency ,
31
31
) {
32
32
if ( ! isDependency ) {
33
- loaderDialog = loader . create ( name || "Plugin" , strings . installing ) ;
33
+ loaderDialog = loader . create ( name || "Plugin" , strings . installing , {
34
+ timeout : 6000 ,
35
+ } ) ;
34
36
depsLoaders = [ ] ;
35
37
}
36
38
Original file line number Diff line number Diff line change @@ -23,6 +23,16 @@ export default function Item({
23
23
downloads,
24
24
installed,
25
25
} ) {
26
+ const authorName = ( ( ) => {
27
+ const displayName =
28
+ typeof author === "object" ? author . name : author || "Unknown" ;
29
+ // Check if it's likely an email or too long
30
+ if ( displayName . includes ( "@" ) || displayName . length > 20 ) {
31
+ return displayName . substring ( 0 , 20 ) + "..." ;
32
+ }
33
+ return displayName ;
34
+ } ) ( ) ;
35
+
26
36
return (
27
37
< div
28
38
data-id = { id }
@@ -43,9 +53,14 @@ export default function Item({
43
53
< span className = "plugin-version" > v{ version } </ span >
44
54
</ div >
45
55
< div className = "plugin-meta" >
46
- < div className = "plugin-stats" >
56
+ < div
57
+ className = "plugin-stats plugin-author"
58
+ title = {
59
+ typeof author === "object" ? author . name : author || "Unknown"
60
+ }
61
+ >
47
62
< span className = "icon person" > </ span >
48
- { typeof author === "object" ? author . name : author || "Unknown" }
63
+ { authorName }
49
64
{ author_verified ? (
50
65
< i
51
66
className = "licons verified"
Original file line number Diff line number Diff line change 36
36
transition : background-color 0.15s ease ;
37
37
display : flex ;
38
38
align-items : center ;
39
+ overflow-x : hidden ;
39
40
& :hover {
40
41
background : color-mix (in srgb , var (--primary-color ) 20% , transparent );
41
42
}
88
89
text-overflow : ellipsis ;
89
90
white-space : nowrap ;
90
91
min-width : 0 ;
92
+ max-width : calc (100% - 50px );
91
93
}
92
94
.plugin-version {
93
95
color : color-mix (in srgb , var (--secondary-text-color ) 80% , black );
103
105
font-size : 0.81rem ;
104
106
color : color-mix (in srgb , var (--secondary-text-color ) 80% , black );
105
107
display : flex ;
108
+ flex-wrap : wrap ;
106
109
gap : 0.375rem ;
107
110
align-items : center ;
108
111
.plugin-meta-dot {
114
117
black
115
118
);
116
119
border-radius : 50% ;
120
+ display : inline-block ;
117
121
}
118
122
.plugin-stats {
119
123
display : flex ;
120
124
align-items : center ;
121
125
gap : 0.25rem ;
122
126
font-size : 0.81rem ;
127
+
128
+ & .plugin-author {
129
+ max-width : 150px ;
130
+ white-space : nowrap ;
131
+ overflow : hidden ;
132
+ text-overflow : ellipsis ;
133
+ }
134
+
123
135
.icon {
124
136
display : inline-flex ;
125
137
align-items : center ;
128
140
height : 12px ;
129
141
font-size : 12px ;
130
142
line-height : 1 ;
143
+ flex-shrink : 0 ;
131
144
}
132
145
}
133
146
}
148
161
}
149
162
}
150
163
151
- @media (max-width : 480px ) {
152
- .plugin-title {
153
- flex-wrap : wrap ;
164
+ @media (max-width : 380px ) {
165
+ .plugin-header {
166
+ .plugin-info {
167
+ flex-direction : column ;
168
+ align-items : flex-start ;
169
+
170
+ .plugin-price {
171
+ margin-top : 4px ;
172
+ align-self : flex-start ;
173
+ }
174
+ }
154
175
}
155
176
156
- .plugin-name {
157
- max-width : calc (100% - 1rem );
177
+ .plugin-meta {
178
+ margin-top : 2px ;
179
+
180
+ .plugin-meta-dot {
181
+ display : none ;
182
+ }
183
+
184
+ .plugin-stats {
185
+ margin-right : 8px ;
186
+ }
158
187
}
159
188
}
160
189
}
You can’t perform that action at this time.
0 commit comments