mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
making it worse!
This commit is contained in:
@@ -198,7 +198,7 @@ class AdminController
|
||||
if ($filename) {
|
||||
$targetPath = $page->path().'/'.$filename;
|
||||
|
||||
if (unlink($targetPath)) {
|
||||
if (file_exists($targetPath) && unlink($targetPath)) {
|
||||
$this->admin->json_response = ['success', 'File deleted: '.$filename];
|
||||
} else {
|
||||
$this->admin->json_response = ['error', 'File could not be deleted: '.$filename];
|
||||
|
||||
@@ -1546,7 +1546,7 @@ body.remodal_active .remodal {
|
||||
.dropzone .dz-preview .dz-error-mark {
|
||||
background-color: #d55a4e; }
|
||||
.dropzone .dz-preview .dz-error-mark::after {
|
||||
content: '\f00d'; }
|
||||
content: '\f12a'; }
|
||||
.dropzone .dz-preview .dz-progress {
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
@@ -1566,13 +1566,14 @@ body.remodal_active .remodal {
|
||||
.dropzone .dz-preview .dz-error-message {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
left: -20px;
|
||||
background: rgba(245, 245, 245, 0.8);
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.2;
|
||||
padding: 8px 10px;
|
||||
color: #800;
|
||||
min-width: 140px;
|
||||
max-width: 500px;
|
||||
background: #f6f6f6;
|
||||
color: #d55a4e;
|
||||
z-index: 500; }
|
||||
.dropzone .dz-preview.dz-processing .dz-progress {
|
||||
display: block; }
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -83,7 +83,7 @@ $error-color: #D55A4E;
|
||||
.dz-error-mark {
|
||||
background-color: $error-color;
|
||||
&::after {
|
||||
content: '\f00d';
|
||||
content: '\f12a';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,13 +110,14 @@ $error-color: #D55A4E;
|
||||
.dz-error-message {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
left: -20px;
|
||||
background: rgba(245,245,245,0.8);
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.2;
|
||||
padding: 8px 10px;
|
||||
color: #800;
|
||||
min-width: 140px;
|
||||
max-width: 500px;
|
||||
background: lighten($content-bg,3%);
|
||||
color: $error-color;
|
||||
z-index: 500;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user