Commit 2d28c88d by Johannes Zellner

Carry over public.html fixes to index.html

1 parent 313dfe99
Showing with 11 additions and 3 deletions
......@@ -96,8 +96,8 @@
<div v-show="!busy && session.valid" v-cloak>
<center>
<el-table :data="entries" style="max-width: 1280px;width: 100%" height="100%" empty-text="Folder is emtpy" :default-sort="{ prop: 'filePath', order: 'descending' }" @row-click="open">
<el-table-column prop="previewUrl" label="Type" width="100px" sortable>
<el-table :data="entries" style="max-width: 1280px; width: 100%" height="100%" empty-text="Folder is emtpy" :default-sort="{ prop: 'filePath', order: 'descending' }" @row-click="open">
<el-table-column prop="previewUrl" label="Type" width="80px" sortable>
<template slot-scope="scope">
<el-image v-bind:src="scope.row.previewUrl" class="list-icon" style="width: 32px; height: 32px" fit="cover"></el-image>
</template>
......
......@@ -150,7 +150,15 @@ function open(row, column, event) {
app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath));
app.previewDrawerVisible = true
// window.open(encode(path));
// need to wait for DOM element to exist
setTimeout(function () {
$('iframe').on('load', function (e) {
if (!e.target.contentWindow.document.body) return;
e.target.contentWindow.document.body.style.display = 'flex'
e.target.contentWindow.document.body.style.justifyContent = 'center'
});
}, 0);
}
function uploadFiles(files) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!