调整样式

This commit is contained in:
purocean
2019-05-03 20:04:42 +08:00
parent a50b2273b6
commit 3ff48231a6
+9 -2
View File
@@ -1,6 +1,6 @@
<template>
<div class="tree-node">
<details :title="dirTitle" ref="dir" :open="item.path === '/'" v-if="item.type === 'dir'">
<details class="name" :title="item.name + '\n\n' + dirTitle" ref="dir" :open="item.path === '/'" v-if="item.type === 'dir'">
<summary
class="dir-label"
:style="{background: selected ? '#313131' : 'none'}"
@@ -19,7 +19,8 @@
@delete="p => $emit('delete', p)"></tree-node>
</details>
<div
:title="fileTitle"
class="name"
:title="item.name + '\n\n' + fileTitle"
v-else
@click="select(item)"
@dblclick.ctrl.exact="revealInExplorer()"
@@ -169,6 +170,12 @@ export default {
user-select: none;
}
.name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.dir-label .count {
color: #989898;
font-size: 12px;