rebrand hide button row to hide footer

This commit is contained in:
Felix Roos 2026-01-22 01:16:22 +01:00
parent a052def314
commit 139b5376fc
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ export default function ReplEditor(Props) {
const { context, ...editorProps } = Props; const { context, ...editorProps } = Props;
const { containerRef, editorRef, error, init, pending } = context; const { containerRef, editorRef, error, init, pending } = context;
const settings = useSettings(); const settings = useSettings();
const { panelPosition, isZen } = settings; const { panelPosition, isZen, isButtonRowHidden } = settings;
const isEmbedded = typeof window !== 'undefined' && window.location !== window.parent.location; const isEmbedded = typeof window !== 'undefined' && window.location !== window.parent.location;
return ( return (
@ -27,7 +27,7 @@ export default function ReplEditor(Props) {
</div> </div>
{!isZen && panelPosition === 'right' && <VerticalPanel context={context} />} {!isZen && panelPosition === 'right' && <VerticalPanel context={context} />}
</div> </div>
<Footer context={context} isEmbedded={isEmbedded} /> {!isButtonRowHidden && <Footer context={context} isEmbedded={isEmbedded} />}
<UserFacingErrorMessage error={error} /> <UserFacingErrorMessage error={error} />
{!isZen && panelPosition === 'bottom' && <HorizontalPanel context={context} />} {!isZen && panelPosition === 'bottom' && <HorizontalPanel context={context} />}
</div> </div>

View file

@ -323,7 +323,7 @@ export function SettingsTab({ started }) {
value={isSyncEnabled} value={isSyncEnabled}
/> />
<Checkbox <Checkbox
label="Hide top buttons" label="Hide footer"
onChange={(cbEvent) => settingsMap.setKey('isButtonRowHidden', cbEvent.target.checked)} onChange={(cbEvent) => settingsMap.setKey('isButtonRowHidden', cbEvent.target.checked)}
value={isButtonRowHidden} value={isButtonRowHidden}
/> />