Vanessa 2023-07-01 23:54:24 +08:00
parent 63156dd783
commit 0c9f588ada
2 changed files with 22 additions and 4 deletions

View file

@ -9,6 +9,13 @@
&__title { &__title {
height: 30px; height: 30px;
outline: none;
font-size: 18px;
font-weight: bold;
&:empty::after {
color: var(--b3-theme-on-surface);
content: attr(data-tip);
}
} }
&__counter { &__counter {
@ -101,4 +108,14 @@
opacity: 1; opacity: 1;
} }
} }
&.protyle-wysiwyg--select {
.layout-tab-bar,
.av__row--header,
.av__row--footer {
background-color: transparent;
}
}
} }

View file

@ -74,11 +74,12 @@ export const avRender = (element: Element, cb?: () => void) => {
e.firstElementChild.outerHTML = `<div> e.firstElementChild.outerHTML = `<div>
<div class="av__header" style="padding-left: ${paddingLeft};padding-right: ${paddingRight};"> <div class="av__header" style="padding-left: ${paddingLeft};padding-right: ${paddingRight};">
<div class="layout-tab-bar fn__flex"> <div class="layout-tab-bar fn__flex">
<div class="item item--focus">tab1</div> <div class="item item--focus">
</div> <svg class="item__graphic"><use xlink:href="#iconTable"></use></svg>
<div contenteditable="true" class="av__title"> <span class="item__text">Table</span>
${data.title} </div>
</div> </div>
<div contenteditable="true" class="av__title" data-tip="${window.siyuan.languages.title}">${data.title||""}</div>
<div class="av__counter fn__none"></div> <div class="av__counter fn__none"></div>
</div> </div>
<div class="av__scroll"> <div class="av__scroll">