mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🎨 row icon
This commit is contained in:
parent
76d18c3c52
commit
70c6dddcaa
2 changed files with 7 additions and 1 deletions
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
&__gutters {
|
||||
@extend .protyle-gutters;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: -44px;
|
||||
opacity: 0;
|
||||
|
|
|
|||
|
|
@ -1452,6 +1452,12 @@ export class WYSIWYG {
|
|||
if (embedElement) {
|
||||
protyle.gutter.render(protyle, embedElement, this.element);
|
||||
} else {
|
||||
// database 行块标
|
||||
const rowElement = hasClosestByClassName(event.target, "av__row");
|
||||
if (rowElement && rowElement.dataset.id) {
|
||||
const rowRect = rowElement.getBoundingClientRect();
|
||||
rowElement.firstElementChild.setAttribute("style", `left:${rowRect.left - 44}px;top:${rowRect.top}px`);
|
||||
}
|
||||
protyle.gutter.render(protyle, nodeElement, this.element);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue