aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2020-01-05 18:29:30 +0100
committerJohannes Zellner <johannes@cloudron.io>2020-01-05 18:29:30 +0100
commit3b4435349d190cc1fd3b9486b9bc207573bd5296 (patch)
tree1491ea0ba6378d79c1aac05e1cb27f069c4acdce
parent6bbbdec8cd000259f978baf67ce8f54d5c3d4ed8 (diff)
downloadSurfer-3b4435349d190cc1fd3b9486b9bc207573bd5296.tar.gz
Surfer-3b4435349d190cc1fd3b9486b9bc207573bd5296.tar.zst
Surfer-3b4435349d190cc1fd3b9486b9bc207573bd5296.zip
Stop busy hovering for actions
-rw-r--r--frontend/css/style.css8
-rw-r--r--frontend/index.html11
2 files changed, 10 insertions, 9 deletions
diff --git a/frontend/css/style.css b/frontend/css/style.css
index 46e6bc4..7be973a 100644
--- a/frontend/css/style.css
+++ b/frontend/css/style.css
@@ -59,11 +59,15 @@ a:hover, a:focus {
59 font-size: 12px; 59 font-size: 12px;
60} 60}
61 61
62.el-table__row .list-actions .el-button { 62.rename-action {
63 margin-left: 20px;
64}
65
66.el-table__row .rename-action {
63 visibility: hidden; 67 visibility: hidden;
64} 68}
65 69
66.el-table__row:hover .list-actions .el-button { 70.el-table__row:hover .rename-action {
67 visibility: visible; 71 visibility: visible;
68} 72}
69 73
diff --git a/frontend/index.html b/frontend/index.html
index dd4c635..206a23c 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -55,9 +55,6 @@
55 55
56 <el-header> 56 <el-header>
57 <el-row type="flex" justify="space-between"> 57 <el-row type="flex" justify="space-between">
58 <div style="padding: 7px;">
59 <span>Surfer</span>
60 </div>
61 <div v-show="session.valid"> 58 <div v-show="session.valid">
62 <el-button type="primary" size="small" icon="el-icon-arrow-left" :disabled="!pathParts.slice(-1).length" @click="onUp"></el-button> 59 <el-button type="primary" size="small" icon="el-icon-arrow-left" :disabled="!pathParts.slice(-1).length" @click="onUp"></el-button>
63 </div> 60 </div>
@@ -102,22 +99,22 @@
102 <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"> 99 <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">
103 <el-table-column prop="previewUrl" label="Type" width="100px" sortable> 100 <el-table-column prop="previewUrl" label="Type" width="100px" sortable>
104 <template slot-scope="scope"> 101 <template slot-scope="scope">
105 <img v-bind:src="scope.row.previewUrl" height="32px" width="32px" style="object-fit: cover;"/> 102 <img v-bind:src="scope.row.previewUrl" class="list-icon" height="32px" width="32px" style="object-fit: cover;"/>
106 </template> 103 </template>
107 </el-table-column> 104 </el-table-column>
108 <el-table-column prop="filePath" label="Name" sortable> 105 <el-table-column prop="filePath" label="Name" sortable>
109 <template slot-scope="scope"> 106 <template slot-scope="scope">
110 <el-input v-on:keyup.native.enter="onRenameSubmit(scope.row)" v-on:keyup.native.esc="onRenameEnd(scope.row)" @blur="onRenameEnd(scope.row)" v-model="scope.row.filePathNew" :id="'filePathRenameInputId-' + scope.$index" v-show="scope.row.rename"></el-input> 107 <el-input v-on:keyup.native.enter="onRenameSubmit(scope.row)" v-on:keyup.native.esc="onRenameEnd(scope.row)" @blur="onRenameEnd(scope.row)" v-model="scope.row.filePathNew" :id="'filePathRenameInputId-' + scope.$index" v-show="scope.row.rename"></el-input>
111 <span v-show="!scope.row.rename">{{ scope.row.filePath }}</span> 108 <span v-show="!scope.row.rename">{{ scope.row.filePath }}</span>
109 <el-button size="small" icon="el-icon-edit" type="text" plain circle class="rename-action" v-show="!scope.row.rename" @click.stop="onRename(scope.row, scope)"></el-button>
112 </template> 110 </template>
113 </el-table-column> 111 </el-table-column>
114 <el-table-column prop="size" label="Size" width="150px" sortable :formatter="prettyFileSize"></el-table-column> 112 <el-table-column prop="size" label="Size" width="150px" sortable :formatter="prettyFileSize"></el-table-column>
115 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column> 113 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column>
116 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions"> 114 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions">
117 <template slot-scope="scope"> 115 <template slot-scope="scope">
118 <el-button size="small" icon="el-icon-edit" circle v-show="!scope.row.rename" @click.stop="onRename(scope.row, scope)"></el-button> 116 <el-button size="small" icon="el-icon-download" type="text" plain circle v-show="!scope.row.rename && scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button>
119 <el-button size="small" icon="el-icon-download" circle v-show="!scope.row.rename && scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button> 117 <el-button size="small" icon="el-icon-delete" type="text" plain circle v-show="!scope.row.rename" @click.stop="onDelete(scope.row)"></el-button>
120 <el-button size="small" icon="el-icon-delete" circle v-show="!scope.row.rename" @click.stop="onDelete(scope.row)"></el-button>
121 </template> 118 </template>
122 </el-table-column> 119 </el-table-column>
123 </el-table> 120 </el-table>