mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
6ffa2425d2
commit
1ec2e03846
6 changed files with 25 additions and 11 deletions
|
|
@ -15,6 +15,7 @@ import {openFile} from "../editor/util";
|
|||
/// #endif
|
||||
import {getDisplayName, movePathTo} from "../util/pathName";
|
||||
import {App} from "../index";
|
||||
import {resize} from "../protyle/util/resize";
|
||||
|
||||
export const genCardHTML = (options: {
|
||||
id: string,
|
||||
|
|
@ -198,6 +199,7 @@ export const bindCardEvent = (options: {
|
|||
if (fullscreenElement) {
|
||||
fullscreen(options.element.querySelector(".card__main"),
|
||||
options.element.querySelector('[data-type="fullscreen"]'));
|
||||
resize(editor.protyle);
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
return;
|
||||
|
|
@ -321,7 +323,7 @@ export const bindCardEvent = (options: {
|
|||
editor.protyle.element.classList.remove("card__block--hidemark", "card__block--hideli", "card__block--hidesb");
|
||||
actionElements[0].classList.add("fn__none");
|
||||
actionElements[1].querySelectorAll(".b3-button").forEach((element, btnIndex) => {
|
||||
element.previousElementSibling.textContent = options.blocks[index].nextDues[btnIndex];
|
||||
element.previousElementSibling.textContent = options.blocks[index].nextDues[btnIndex];
|
||||
});
|
||||
actionElements[1].classList.remove("fn__none");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue