mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 14:28:49 +01:00
This commit is contained in:
parent
fdb9ea547e
commit
c85b879cb7
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import {Constants} from "../constants";
|
|||
import {onGet} from "../protyle/util/onGet";
|
||||
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||
import {viewCards} from "./viewCards";
|
||||
import {hideElements} from "../protyle/ui/hideElements";
|
||||
|
||||
export const openCard = () => {
|
||||
const exit = window.siyuan.dialogs.find(item => {
|
||||
|
|
@ -149,6 +150,7 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
|
|||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
hideElements(["toolbar", "hint", "util"], editor.protyle);
|
||||
if (type === "-1") {
|
||||
editor.protyle.element.classList.remove("b3-dialog__cardblock--hide");
|
||||
actionElements[0].classList.add("fn__none");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue