mirror of https://github.com/nextcloud/server
fix: Positioning and active state of viewer components
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
cc93ce6781
commit
bebf1e1860
|
@ -37,8 +37,8 @@
|
|||
|
||||
<!-- Live preview if a handler is available -->
|
||||
<component :is="viewerHandler.component"
|
||||
v-else-if="viewerHandler && !failedViewer"
|
||||
:active="false"
|
||||
v-else-if="interactive && viewerHandler && !failedViewer"
|
||||
:active="false /* prevent video from autoplaying */"
|
||||
:can-swipe="false"
|
||||
:can-zoom="false"
|
||||
:is-embedded="true"
|
||||
|
@ -46,7 +46,7 @@
|
|||
: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 -->
|
||||
|
@ -307,5 +307,12 @@ export default defineComponent({
|
|||
&--link {
|
||||
color: var(--color-text-maxcontrast);
|
||||
}
|
||||
|
||||
&--interactive {
|
||||
position: relative;
|
||||
height: 400px;
|
||||
max-height: 50vh;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue