fix:resolve the Copilot-suggested changes

This commit is contained in:
Xinyang Gao-PC
2026-01-04 20:13:47 +08:00
parent 801974a18b
commit 783cb4a6f1
4 changed files with 31 additions and 34 deletions
+5 -11
View File
@@ -11,19 +11,13 @@ import {
ResizablePanelGroup,
} from "@/components/ui/resizable"
import { useDiagram } from "@/contexts/diagram-context"
import {
DEFAULT_DRAWIO_THEME,
DRAWIO_THEMES,
type DrawioTheme,
} from "@/lib/drawio-themes"
import { i18n, type Locale } from "@/lib/i18n/config"
// Draw.io UI themes
export type DrawioTheme = "kennedy" | "simple" | "min" | "sketch" | "atlas"
export const DRAWIO_THEMES: DrawioTheme[] = [
"kennedy",
"simple",
"min",
"sketch",
"atlas",
]
const DEFAULT_DRAWIO_THEME: DrawioTheme = "min"
const drawioBaseUrl =
process.env.NEXT_PUBLIC_DRAWIO_BASE_URL || "https://embed.diagrams.net"
-5
View File
@@ -399,8 +399,3 @@
animation: none;
}
}
/* Fix for iframe touch events in Chrome */
.diagrams-iframe {
touch-action: auto;
}