]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Do not stretch image previews
authorJohannes Zellner <johannes@cloudron.io>
Tue, 6 Aug 2019 14:24:22 +0000 (16:24 +0200)
committerJohannes Zellner <johannes@cloudron.io>
Tue, 6 Aug 2019 14:24:22 +0000 (16:24 +0200)
frontend/index.html

index 9849a691d07f6237e5ad62da3d117a2696be4ed9..974decebdfe5ebdeed40b8774754c4a0367849b0 100644 (file)
@@ -84,7 +84,7 @@
         <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>
             <template slot-scope="scope">
-              <img v-bind:src="scope.row.previewUrl" height="48px" width="48px"/>
+              <img v-bind:src="scope.row.previewUrl" height="48px" width="48px" style="object-fit: cover;"/>
             </template>
           </el-table-column>
           <el-table-column prop="filePath" label="Name" sortable>