mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-04 08:54:33 +08:00
Floating page content bugfix and prevent incompatable image uploads. Fixes #26.
This commit is contained in:
@ -110,6 +110,12 @@
|
||||
dz.removeFile(file);
|
||||
});
|
||||
});
|
||||
this.on('error', function(file, errorMessage, xhr) {
|
||||
if(errorMessage.file) {
|
||||
$(file.previewElement).find('[data-dz-errormessage]').text(errorMessage.file[0]);
|
||||
}
|
||||
console.log(errorMessage);
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -19,12 +19,16 @@
|
||||
max-width: 840px;
|
||||
overflow-wrap: break-word;
|
||||
.align-left {
|
||||
float: left !important;
|
||||
text-align: left;
|
||||
}
|
||||
img.align-left, table.align-left {
|
||||
float: left !important;
|
||||
margin: $-xs $-s $-xs 0;
|
||||
}
|
||||
.align-right {
|
||||
float: right !important;
|
||||
}
|
||||
img.align-right, table.align-right {
|
||||
text-align: right;
|
||||
margin: $-xs 0 $-xs $-s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user