Skip to content

Commit

Permalink
ELEMENTS-1584 Fix image centering in nuxeo-image-viewer after closing…
Browse files Browse the repository at this point in the history
… sidebar
  • Loading branch information
Alok Ranjan committed Aug 28, 2023
1 parent 4a23fa4 commit f5d29a5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui/viewers/nuxeo-image-viewer.js
Expand Up @@ -148,6 +148,15 @@ import '../nuxeo-icons.js';
max-width: 100%;
max-height: 100%;
}
.cropper-container {
width: 100% !important;
}
.cropper-canvas,
.cropper-canvas > img {
width: 100% !important;
}
</style>
<div id="canvas">
Expand Down Expand Up @@ -212,7 +221,7 @@ import '../nuxeo-icons.js';
checkCrossOrigin: false,
checkOrientation: false,
dragMode: 'move',
responsive: false,
responsive: true,
restore: false,
toggleDragModeOnDblclick: false,
viewMode: 1,
Expand Down

0 comments on commit f5d29a5

Please sign in to comment.