🐛 card zindex

This commit is contained in:
Vanessa 2023-09-05 16:39:22 +08:00
parent 7c80f8e842
commit 2255a79003
3 changed files with 0 additions and 3 deletions

View file

@ -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)) {

View file

@ -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");

View file

@ -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") {