mirror of
https://github.com/directus/directus.git
synced 2026-01-27 23:57:57 -05:00
Fix editor size, init without crop (#558)
This commit is contained in:
@@ -303,7 +303,7 @@ export default defineComponent({
|
||||
cropperInstance.value.destroy();
|
||||
}
|
||||
|
||||
cropperInstance.value = new Cropper(imageElement.value);
|
||||
cropperInstance.value = new Cropper(imageElement.value, { autoCrop: false });
|
||||
}
|
||||
|
||||
function flip(type: 'horizontal' | 'vertical') {
|
||||
@@ -339,8 +339,6 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
.editor-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
@@ -349,6 +347,7 @@ export default defineComponent({
|
||||
.editor {
|
||||
flex-grow: 1;
|
||||
width: 100%;
|
||||
height: calc(100% - 60px);
|
||||
}
|
||||
|
||||
img {
|
||||
|
||||
Reference in New Issue
Block a user