mirror of
https://github.com/purocean/yn.git
synced 2026-10-12 23:31:39 +08:00
调整样式
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user