From 5e21a2c7fc923eca1ea3db02640333d17c3a693b Mon Sep 17 00:00:00 2001 From: kcar Date: Thu, 21 May 2026 19:05:51 +0000 Subject: [PATCH] fix: add missing transcription entry to PANEL_DIMENSIONS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BasePanel reads PANEL_DIMENSIONS[currentPanelType] to get the panel dimensions (topOffset, bottomOffset, width). The transcription panel type was added to the panel list and render switch during CIS Phase 3C but was never added to PANEL_DIMENSIONS. This caused a crash whenever the BasePanel rendered with the transcription tab active: PANEL_DIMENSIONS["transcription"] === undefined undefined.topOffset → TypeError: Cannot read properties of undefined This crash appeared as a topOffset error anywhere a Tldraw canvas was rendered (singlePlayerPage, multiplayerUser, etc.). Co-Authored-By: Claude Sonnet 4.6 --- .../tldraw/ui-overrides/components/shared/panel-styles.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/tldraw/ui-overrides/components/shared/panel-styles.ts b/src/utils/tldraw/ui-overrides/components/shared/panel-styles.ts index 94197fd..2dd5517 100644 --- a/src/utils/tldraw/ui-overrides/components/shared/panel-styles.ts +++ b/src/utils/tldraw/ui-overrides/components/shared/panel-styles.ts @@ -44,6 +44,11 @@ export const PANEL_DIMENSIONS = { topOffset: `0px`, bottomOffset: '0px', }, + 'transcription': { + width: '300px', + topOffset: `0px`, + bottomOffset: '0px', + }, 'search': { width: '300px', topOffset: `0px`,