Skip to content

Commit

Permalink
fix: Properly render compare view
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <jus@bitgrid.net>
  • Loading branch information
juliushaertl authored and elzody committed Sep 27, 2024
1 parent 1ae9eda commit 0359cd2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/view/Office.vue
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,20 @@ export default {
</style>
<style lang="scss">
.viewer .office-viewer:not(.viewer__file--hidden):not(.widget-file) {
.viewer__content:not(.viewer--split) .office-viewer:not(.viewer__file--hidden):not(.widget-file) {
width: 100%;
height: 100vh;
height: 100dvh;
top: -50px;
position: absolute;
}
[data-handler='richdocuments'] .modal-container {
bottom: 0;
}
.viewer__content.viewer--split .office-viewer {
height: 100%;
width: 100%;
}
</style>
2 changes: 1 addition & 1 deletion src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (OCA.Viewer) {
group: null,
mimes: supportedMimes,
component: Office,
theme: 'light',
theme: 'default',
canCompare: true,
})
}

0 comments on commit 0359cd2

Please sign in to comment.