File tree 2 files changed +12
-7
lines changed
app/code/Magento/MediaGalleryUi
view/adminhtml/web/css/source 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
class GetFolderTree
19
19
{
20
- private const NAME_LENGTH = 50 ;
21
-
22
20
/**
23
21
* @var Filesystem
24
22
*/
@@ -86,11 +84,8 @@ private function getDirectories(): array
86
84
}
87
85
88
86
$ pathArray = explode ('/ ' , $ path );
89
- $ displayName = strlen (end ($ pathArray )) > self ::NAME_LENGTH ?
90
- substr (end ($ pathArray ), 0 , self ::NAME_LENGTH ) . "... " :
91
- end ($ pathArray );
92
87
$ directories [] = [
93
- 'data ' => count ($ pathArray ) > 0 ? $ displayName : $ path ,
88
+ 'data ' => count ($ pathArray ) > 0 ? end ( $ pathArray ) : $ path ,
94
89
'attr ' => ['id ' => $ path ],
95
90
'metadata ' => [
96
91
'path ' => $ path
Original file line number Diff line number Diff line change 170
170
height : 30px ;
171
171
margin : 1px ;
172
172
padding-left : 6px ;
173
+ padding-right : 10px ;
173
174
padding-top : 6px ;
174
- width : 100 % ;
175
+ width : max-content ;
175
176
}
176
177
177
178
.jstree-default .jstree-clicked {
272
273
}
273
274
274
275
.media-directory-container {
276
+ & ::-webkit-scrollbar {
277
+ background : transparent ;
278
+ width : 0px ;
279
+ }
280
+ -ms-overflow-style : none ;
275
281
float : left ;
282
+ max-width : 50% ;
283
+ overflow-x : scroll ;
284
+ overflow-y : hidden ;
276
285
padding-right : 40px ;
286
+ scrollbar-width : none ;
277
287
}
278
288
279
289
.media-gallery-image-block {
You can’t perform that action at this time.
0 commit comments