mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 06:18:49 +01:00
This commit is contained in:
parent
2cf8910d24
commit
47ef68dc9a
2 changed files with 12 additions and 0 deletions
|
|
@ -514,6 +514,10 @@
|
|||
&-scroll {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&-hint {
|
||||
min-width: 100vw;
|
||||
}
|
||||
}
|
||||
|
||||
.b3-dialog__container {
|
||||
|
|
|
|||
|
|
@ -275,11 +275,19 @@ ${unicode2Emoji(emoji.unicode)}</button>`;
|
|||
const cellElement = hasClosestByClassName(protyle.toolbar.range.startContainer, "av__cell");
|
||||
if (cellElement) {
|
||||
const cellRect = cellElement.getBoundingClientRect();
|
||||
/// #if !MOBILE
|
||||
setPosition(this.element, cellRect.left, cellRect.bottom, cellRect.height);
|
||||
/// #else
|
||||
setPosition(this.element, 0, 0);
|
||||
/// #endif
|
||||
}
|
||||
} else {
|
||||
const textareaPosition = getSelectionPosition(protyle.wysiwyg.element);
|
||||
/// #if !MOBILE
|
||||
setPosition(this.element, textareaPosition.left, textareaPosition.top + 26, 30);
|
||||
/// #else
|
||||
setPosition(this.element, 0, 0);
|
||||
/// #endif
|
||||
}
|
||||
this.element.scrollTop = 0;
|
||||
this.bindUploadEvent(protyle, this.element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue