mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🐛 card zindex
This commit is contained in:
parent
7c80f8e842
commit
2255a79003
3 changed files with 0 additions and 3 deletions
|
|
@ -68,7 +68,6 @@ export const makeCard = (app: App, ids: string[]) => {
|
||||||
</div>`,
|
</div>`,
|
||||||
});
|
});
|
||||||
dialog.element.setAttribute("data-key", "makeCard");
|
dialog.element.setAttribute("data-key", "makeCard");
|
||||||
dialog.element.style.zIndex = "200";
|
|
||||||
dialog.element.addEventListener("click", (event) => {
|
dialog.element.addEventListener("click", (event) => {
|
||||||
let target = event.target as HTMLElement;
|
let target = event.target as HTMLElement;
|
||||||
while (target && !target.isSameNode(dialog.element)) {
|
while (target && !target.isSameNode(dialog.element)) {
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,6 @@ export const bindCardEvent = (options: {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
(options.element.firstElementChild as HTMLElement).style.zIndex = "200";
|
|
||||||
options.element.setAttribute("data-key", window.siyuan.config.keymap.general.riffCard.custom);
|
options.element.setAttribute("data-key", window.siyuan.config.keymap.general.riffCard.custom);
|
||||||
const countElement = options.element.querySelector('[data-type="count"]');
|
const countElement = options.element.querySelector('[data-type="count"]');
|
||||||
const actionElements = options.element.querySelectorAll(".card__action");
|
const actionElements = options.element.querySelectorAll(".card__action");
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,6 @@ export const viewCards = (app: App, deckID: string, title: string, deckType: "Tr
|
||||||
if (response.data.pageCount > 1) {
|
if (response.data.pageCount > 1) {
|
||||||
nextElement.removeAttribute("disabled");
|
nextElement.removeAttribute("disabled");
|
||||||
}
|
}
|
||||||
dialog.element.style.zIndex = "200";
|
|
||||||
dialog.element.setAttribute("data-key", "viewCards");
|
dialog.element.setAttribute("data-key", "viewCards");
|
||||||
dialog.element.addEventListener("click", (event) => {
|
dialog.element.addEventListener("click", (event) => {
|
||||||
if (typeof event.detail === "string") {
|
if (typeof event.detail === "string") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue