File tree Expand file tree Collapse file tree 5 files changed +23
-6
lines changed
Expand file tree Collapse file tree 5 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 6262 font-size : 10rem ;
6363}
6464
65+ /* Mime icon generator overwrite */
66+
67+ .mime-icon : before {
68+ top : calc (45% - 1rem );
69+ font-size : 2rem ;
70+ }
71+
6572/* Loader */
6673
6774# lfm-loader {
Original file line number Diff line number Diff line change @@ -311,9 +311,9 @@ function loadItems() {
311311 . attr ( 'data-id' , index ) ;
312312
313313 if ( item . thumb_url ) {
314- var image = $ ( '<div>' ) . css ( 'background-image' , 'url("' + item . thumb_url + '?timestamp=' + item . time + '")' )
314+ var image = $ ( '<div>' ) . css ( 'background-image' , 'url("' + item . thumb_url + '?timestamp=' + item . time + '")' ) ;
315315 } else {
316- var image = $ ( '<i >' ) . addClass ( 'fa fa-5x ' + item . icon )
316+ var image = $ ( '<div >' ) . addClass ( 'mime-icon ico- ' + item . icon ) ;
317317 }
318318
319319 template . find ( '.square' ) . append ( image ) ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function icon()
131131 return 'fa-image ' ;
132132 }
133133
134- return $ this ->helper -> getFileIcon ( $ this -> extension () );
134+ return $ this ->extension ();
135135 }
136136
137137 public function type ()
Original file line number Diff line number Diff line change 1616 <link rel =" shortcut icon" type =" image/png" href =" {{ asset (' vendor/laravel-filemanager/img/folder.png' ) } }" >
1717 <link rel =" stylesheet" href =" https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" >
1818 <link rel =" stylesheet" href =" //maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" >
19+ <link rel =" stylesheet" href =" //cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.css" >
1920 <link rel =" stylesheet" href =" {{ asset (' vendor/laravel-filemanager/css/cropper.min.css' ) } }" >
21+ <link rel =" stylesheet" href =" {{ asset (' vendor/laravel-filemanager/css/mfb.css' ) } }" >
22+ <link rel =" stylesheet" href =" {{ asset (' vendor/laravel-filemanager/css/dropzone.min.css' ) } }" >
23+ <link rel =" stylesheet" href =" {{ asset (' vendor/laravel-filemanager/css/mime-icons.min.css' ) } }" >
2024 <style >{!! \File:: get (base_path (' vendor/unisharp/laravel-filemanager/public/css/lfm.css' )) ! !} </style >
2125 {{-- Use the line below instead of the above if you need to cache the css. --}}
2226 {{-- <link rel="stylesheet" href="{{ asset('/vendor/laravel-filemanager/css/lfm.css') }}"> --}}
23- <link rel =" stylesheet" href =" {{ asset (' vendor/laravel-filemanager/css/mfb.css' ) } }" >
24- <link rel =" stylesheet" href =" {{ asset (' vendor/laravel-filemanager/css/dropzone.min.css' ) } }" >
25- <link rel =" stylesheet" href =" //cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.css" >
2627</head >
2728<body >
2829 <nav class =" navbar sticky-top navbar-expand-lg navbar-dark" id =" nav" >
You can’t perform that action at this time.
0 commit comments