mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 14:13:49 +08:00
fix(favorites): keep folder selector above detail modal
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
import { render } from "@testing-library/vue";
|
||||||
|
import { describe, expect, it } from "vitest";
|
||||||
|
|
||||||
|
import FavoriteFolderSelector from "@/components/FavoriteFolderSelector.vue";
|
||||||
|
|
||||||
|
describe("FavoriteFolderSelector", () => {
|
||||||
|
it("renders above the app detail modal and its child popups", () => {
|
||||||
|
const { container } = render(FavoriteFolderSelector, {
|
||||||
|
props: {
|
||||||
|
show: true,
|
||||||
|
folders: [],
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const overlay = container.firstElementChild;
|
||||||
|
|
||||||
|
expect(overlay?.className).toContain("z-[90]");
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="show"
|
v-if="show"
|
||||||
class="fixed inset-0 z-50 flex items-center justify-center p-4"
|
class="fixed inset-0 z-[90] flex items-center justify-center p-4"
|
||||||
>
|
>
|
||||||
<div class="absolute inset-0 bg-black/40" @click="emit('close')"></div>
|
<div class="absolute inset-0 bg-black/40" @click="emit('close')"></div>
|
||||||
<section
|
<section
|
||||||
|
|||||||
Reference in New Issue
Block a user