mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 05:28:07 +01:00
♻️ set inline type
This commit is contained in:
parent
eae9991e7b
commit
f4c1687d4d
6 changed files with 19 additions and 8 deletions
|
|
@ -49,7 +49,7 @@ export const initBlockPopover = () => {
|
|||
}
|
||||
let popoverTargetElement = hasClosestByAttribute(event.target, "data-type", "block-ref") as HTMLElement ||
|
||||
hasClosestByAttribute(event.target, "data-type", "virtual-block-ref") as HTMLElement;
|
||||
if (popoverTargetElement && popoverTargetElement.classList.contains("protyle-toolbar")) {
|
||||
if (popoverTargetElement && popoverTargetElement.classList.contains("b3-tooltips")) {
|
||||
popoverTargetElement = undefined;
|
||||
}
|
||||
if (!popoverTargetElement) {
|
||||
|
|
@ -107,7 +107,7 @@ export const initBlockPopover = () => {
|
|||
}
|
||||
let popoverTargetElement = hasClosestByAttribute(event.target, "data-type", "block-ref") as HTMLElement ||
|
||||
hasClosestByAttribute(event.target, "data-type", "virtual-block-ref") as HTMLElement;
|
||||
if (popoverTargetElement && popoverTargetElement.classList.contains("protyle-toolbar")) {
|
||||
if (popoverTargetElement && popoverTargetElement.classList.contains("b3-tooltips")) {
|
||||
popoverTargetElement = undefined;
|
||||
}
|
||||
if (!popoverTargetElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue