Compare commits

..

2 Commits

Author SHA1 Message Date
Peter Papp
bc7950b245 Merge pull request #14 from MakingCG/svg-fix
fix with svg and scrolling
2020-06-05 17:29:06 +02:00
carodej
321bac6c9f fix with svg and scrolling 2020-06-05 17:26:41 +02:00
7 changed files with 11 additions and 6 deletions

View File

@@ -221,7 +221,7 @@ class Editor
Storage::putFileAs($directory, $file, $filename, 'private');
// Create image thumbnail
if ($filetype == 'image') {
if (in_array($file->getMimeType(), ['image/gif', 'image/jpeg', 'image/jpg', 'image/png', 'image/webp'])) {
// Get thumbnail name
$thumbnail = 'thumbnail-' . $filename;
@@ -236,6 +236,10 @@ class Editor
// Store thumbnail to disk
Storage::put($directory . '/' . $thumbnail, $image);
} elseif ($file->getMimeType() == 'image/svg+xml') {
$thumbnail = $filename;
}
// Store file

View File

@@ -2,7 +2,7 @@
return [
'version' => '1.6.2',
'version' => '1.6.3',
// Your app name
'app_name' => 'VueFileManager',

2
public/css/app.css vendored

File diff suppressed because one or more lines are too long

2
public/js/main.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -226,8 +226,6 @@
.file-content {
display: flex;
flex-wrap: nowrap;
height: 100%;
&.is-dragging {
@include transform(scale(0.99));
@@ -289,6 +287,7 @@
right: 15px;
bottom: 0;
@include transition;
overflow-y: auto;
&.is-offset {
margin-top: 50px;

View File

@@ -50,6 +50,7 @@
overflow-x: hidden;
padding-left: 15px;
padding-right: 15px;
overflow-y: hidden;
}
@media only screen and (max-width: 690px) {

View File

@@ -5,6 +5,7 @@
#viewport {
display: flex;
width: 100%;
height: 100%;
@include transition(200ms);
}