mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-11 03:59:58 +08:00
fix:resolve the Copilot-suggested changes
This commit is contained in:
+5
-11
@@ -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"
|
||||
|
||||
|
||||
@@ -399,8 +399,3 @@
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Fix for iframe touch events in Chrome */
|
||||
.diagrams-iframe {
|
||||
touch-action: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user