fix: keep CAD stream aligned with viewport

This commit is contained in:
134 2026-07-13 20:44:24 +08:00
parent a9390f0abc
commit 8e88f02214

View File

@ -220,6 +220,11 @@ function patchOfficialSource() {
" new URL(env().VITE_MLEPHANT_WEBSOCKET_URL ?? '')",
" new URL(env().VITE_MLEPHANT_WEBSOCKET_URL ?? '', window.location.href)"
);
replaceSource(
"src/components/ConnectionStream.tsx",
` className="cursor-pointer"\n id="freeze-frame"`,
` className="absolute inset-0 h-full w-full cursor-pointer"\n id="freeze-frame"`
);
replaceSource(
"src/index.tsx",
"import { markOnce } from '@src/lib/performance'\n",