Skip to content

Commit 4a122bb

Browse files
Merge branch 'release/1.8.0' into feat/software-encoder-toggle-ui
2 parents 8018f33 + 51754cc commit 4a122bb

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

src/components/ai-edition/v4/EditorTopBar.tsx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,27 @@ export function EditorTopBar({
5757
const { theme, toggle: toggleTheme } = useTheme();
5858
const t = useScopedT("editor");
5959

60+
// ponytail: the left side panel only renders in "edit" mode (see
61+
// NewEditorShell body), so its toggle is meaningless in Media/Rec —
62+
// hide the button (and its separator) there to keep the topbar honest.
63+
const showChatToggle = mode === "edit";
6064
return (
6165
<header className={styles.topbar}>
62-
<button
63-
type="button"
64-
className={`${styles.iconBtn}${chatOpen ? ` ${styles.on}` : ""}`}
65-
title={t("topbar.toggleChatPanel")}
66-
aria-label={t("topbar.toggleChatPanel")}
67-
aria-pressed={chatOpen}
68-
onClick={actions.toggleChat}
69-
>
70-
<PanelLeft size={17} />
71-
</button>
72-
<span className={styles.sep} aria-hidden />
66+
{showChatToggle ? (
67+
<>
68+
<button
69+
type="button"
70+
className={`${styles.iconBtn}${chatOpen ? ` ${styles.on}` : ""}`}
71+
title={t("topbar.toggleChatPanel")}
72+
aria-label={t("topbar.toggleChatPanel")}
73+
aria-pressed={chatOpen}
74+
onClick={actions.toggleChat}
75+
>
76+
<PanelLeft size={17} />
77+
</button>
78+
<span className={styles.sep} aria-hidden />
79+
</>
80+
) : null}
7381
<span className={styles.brand}>
7482
{/* Decorative: the wordmark right beside it already names the app. */}
7583
<img src={logoMark} alt="" draggable={false} />

0 commit comments

Comments
 (0)