菜单目录优化

This commit is contained in:
sswiki
2024-12-08 22:19:48 +08:00
parent db4de0b319
commit 4ad463845e
5 changed files with 244 additions and 104 deletions

View File

@@ -129,69 +129,3 @@ body {
}
</style>
<style lang="scss">
.space-folder-box {
position: relative;
}
.wiki-page-tree-box {
.el-tree-node__content {
height: 35px;
position: relative;
.page-tree-node {
width: 100%;
.label {
.el-icon {
vertical-align: middle;
}
.text {
margin-left: 5px;
vertical-align: middle;
max-width: calc(100% - 40px);
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.rename-input {
width: 90%;
}
.page-action-box {
position: absolute;
right: 0;
top: 0;
height: 35px;
line-height: 35px;
background: #fff;
border-radius: 4px;
display: none;
.page-action-dropdown-btn {
padding: 0 8px;
height: 35px;
margin-top: -1px;
}
.el-button + .el-button {
margin-left: 0;
}
}
.page-action-box.renaming {
display: none !important;
}
}
&:hover .page-action-box {
display: block;
}
}
}
</style>