mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
pref: 优化树状菜单样式
This commit is contained in:
parent
63340b5a05
commit
77908005a2
@ -81,7 +81,7 @@
|
||||
<div v-else class="name-wrapper" :style="{ maxWidth: isNotBlank(data.icon) ? 'calc(100% - 25px)' : '100%' }">
|
||||
{{ data.n }}
|
||||
</div>
|
||||
<bl-tag v-for="tag in tags(data, viewStyle)" style="margin-top: 4px" :bg-color="tag.bgColor" :color="tag.color" :icon="tag.icon">
|
||||
<bl-tag v-for="tag in tags(data, viewStyle)" style="margin-top: 4px" :bg-color="tag.bgColor" :icon="tag.icon">
|
||||
{{ tag.content }}
|
||||
</bl-tag>
|
||||
</div>
|
||||
|
@ -88,8 +88,8 @@ $icon-size: 17px;
|
||||
.sync-line {
|
||||
position: absolute;
|
||||
width: 2px;
|
||||
height: 70%;
|
||||
top: 15%;
|
||||
height: 60%;
|
||||
top: 20%;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ export const tags = (
|
||||
}
|
||||
if (doc.ty === 1 && doc.star === 1) {
|
||||
if (viewStyle.isShowFolderStarTag) {
|
||||
icons.unshift({ bgColor: 'rgb(220,192,36)', color: '#6a5b00', icon: 'bl-star-line' })
|
||||
icons.unshift({ bgColor: 'rgb(220,192,36)', icon: 'bl-star-line' })
|
||||
}
|
||||
}
|
||||
return icons
|
||||
@ -52,7 +52,7 @@ export const tagLins = (doc: DocTree) => {
|
||||
if (doc.star === 1) {
|
||||
lines.push('star-line')
|
||||
}
|
||||
if (doc.o === 1 && doc.ty === 3) {
|
||||
if (doc.o === 1) {
|
||||
lines.push('open-line')
|
||||
}
|
||||
if (doc.vd === 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user