Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: css reset conflicts between tailwindcss v3 and naive-ui (#947)

Liu Jib69e68c3d263
diff --git a/frontend/src/plugins/naive-ui.ts b/frontend/src/plugins/naive-ui.ts
index 3721b7940e..65d1005e2c 100644
--- a/frontend/src/plugins/naive-ui.ts
+++ b/frontend/src/plugins/naive-ui.ts
@@ -54,6 +54,16 @@ const naive = create({
],
});
-const install = (app: App) => app.use(naive);
+const install = (app: App) => {
+ app.use(naive);
+ reAppendMetaTag("naive-ui-style");
+ reAppendMetaTag("vueuc-style");
+};
export default install;
+
+const reAppendMetaTag = (name: string) => {
+ const meta = document.createElement("meta");
+ meta.name = name;
+ document.head.appendChild(meta);
+};