fix(webui): harden mobile context sheet interactions

This commit is contained in:
Xubin Ren committed 2026-09-13 23:35:16 +08:00
1 parent aa799cec9f
commit 08b130cdd1
4 files changed
+36 -6

No files matched your search

+4 -4
View File
@@ -129,10 +129,10 @@ export default defineConfig(({ mode }) => {
dedupe: ["react", "react-dom", "lucide-react", "react-i18next", "qrcode"],
},
optimizeDeps: {
// Radix Dialog can rewrite its optimized chunk while a dev tab is open.
// Syntax highlighting must remain pre-bundled because Refractor's core
// still uses CommonJS internally.
exclude: ["@radix-ui/react-dialog"],
// Pre-bundle Dialog up front, including lazy settings/sheets. Excluding
// it splits its layer/focus state from optimized Popover and DropdownMenu,
// so nested overlays can dismiss the wrong layer in development.
include: ["@radix-ui/react-dialog"],
},
build: {
outDir: path.resolve(__dirname, "../nanobot/web/dist"),