Skip to content

Commit

Permalink
fix: Positioning and active state of viewer components
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Mar 7, 2024
1 parent 0d0cbe3 commit 8a4cb21
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/files/src/views/ReferenceFileWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
<!-- Live preview if a handler is available -->
<component :is="viewerHandler.component"
v-else-if="viewerHandler && !failedViewer"
:active="false"
:active="true"
:can-swipe="false"
:can-zoom="false"
:is-embedded="true"
v-bind="viewerFile"
:file-list="[viewerFile]"
:is-full-screen="false"
:is-sidebar-shown="false"
class="widget-file widget-file--preview"
class="widget-file widget-file--interactive"
@error="failedViewer = true" />

<!-- The file is accessible -->
Expand Down Expand Up @@ -307,5 +307,12 @@ export default defineComponent({
&--link {
color: var(--color-text-maxcontrast);
}

&--interactive {
position: relative;
height: 400px;
max-height: 50vh;
margin: 0;
}
}
</style>

0 comments on commit 8a4cb21

Please sign in to comment.