mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 card zindex
This commit is contained in:
@@ -68,7 +68,6 @@ export const makeCard = (app: App, ids: string[]) => {
|
||||
</div>`,
|
||||
});
|
||||
dialog.element.setAttribute("data-key", "makeCard");
|
||||
dialog.element.style.zIndex = "200";
|
||||
dialog.element.addEventListener("click", (event) => {
|
||||
let target = event.target as HTMLElement;
|
||||
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);
|
||||
const countElement = options.element.querySelector('[data-type="count"]');
|
||||
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) {
|
||||
nextElement.removeAttribute("disabled");
|
||||
}
|
||||
dialog.element.style.zIndex = "200";
|
||||
dialog.element.setAttribute("data-key", "viewCards");
|
||||
dialog.element.addEventListener("click", (event) => {
|
||||
if (typeof event.detail === "string") {
|
||||
|
||||
Reference in New Issue
Block a user