mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 22:23: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>
|
||||
<div
|
||||
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>
|
||||
<section
|
||||
|
||||
Reference in New Issue
Block a user