Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(topbar): hide left side panel toggle in Media and Rec modes
Etienne Lescot90ffd1dc464c
diff --git a/src/components/ai-edition/v4/EditorTopBar.tsx b/src/components/ai-edition/v4/EditorTopBar.tsxindex 35f598a45..75ef8d260 100644--- a/src/components/ai-edition/v4/EditorTopBar.tsx+++ b/src/components/ai-edition/v4/EditorTopBar.tsx@@ -57,19 +57,27 @@ export function EditorTopBar({const { theme, toggle: toggleTheme } = useTheme();const t = useScopedT("editor");+ // ponytail: the left side panel only renders in "edit" mode (see+ // NewEditorShell body), so its toggle is meaningless in Media/Rec —+ // hide the button (and its separator) there to keep the topbar honest.+ const showChatToggle = mode === "edit";return (<header className={styles.topbar}>- <button- type="button"- className={`${styles.iconBtn}${chatOpen ? ` ${styles.on}` : ""}`}- title={t("topbar.toggleChatPanel")}- aria-label={t("topbar.toggleChatPanel")}- aria-pressed={chatOpen}- onClick={actions.toggleChat}- >- <PanelLeft size={17} />- </button>- <span className={styles.sep} aria-hidden />+ {showChatToggle ? (+ <>+ <button+ type="button"+ className={`${styles.iconBtn}${chatOpen ? ` ${styles.on}` : ""}`}+ title={t("topbar.toggleChatPanel")}+ aria-label={t("topbar.toggleChatPanel")}+ aria-pressed={chatOpen}+ onClick={actions.toggleChat}+ >+ <PanelLeft size={17} />+ </button>+ <span className={styles.sep} aria-hidden />+ </>+ ) : null}<span className={styles.brand}>{/* Decorative: the wordmark right beside it already names the app. */}<img src={logoMark} alt="" draggable={false} />