move prebake nav down

This commit is contained in:
Felix Roos 2026-02-07 21:51:00 +01:00
parent 7b58bbf12b
commit 6707c7893b
No known key found for this signature in database

View file

@ -394,32 +394,22 @@ function PrebakeSettingsContent() {
}; };
}, []); }, []);
return ( return (
<div className="text-foreground w-full overflow-auto" style={{ fontFamily }}> <div className="flex flex-col h-full text-foreground w-full overflow-auto" style={{ fontFamily }}>
<div className="px-4 py-2 flex flex-row items-center space-x-3"> <div className="flex flex-col grow overflow-hidden h-full bg-background">
<ActionButton <Code containerRef={containerRef} editorRef={editorRef} init={init} />
onClick={async () => { </div>
await editorRef.current?.savePrebake(); <div className="flex justify-between items-center border-t border-muted px-4 whitespace-nowrap">
}}
>
save
</ActionButton>
<ImportPrebakeScriptButton updateEditor={handleSetCode} />
<ActionButton
onClick={async () => {
console.log('Exporting');
await exportScript(prebakeScript);
}}
>
export
</ActionButton>
<Checkbox <Checkbox
label="include prebake script in share" label="share with patterns"
className="whitespace-nowrap max-w-[200px]"
onChange={(cbEvent) => settingsMap.setKey('includePrebakeScriptInShare', cbEvent.target.checked)} onChange={(cbEvent) => settingsMap.setKey('includePrebakeScriptInShare', cbEvent.target.checked)}
value={includePrebakeScriptInShare} value={includePrebakeScriptInShare}
/> />
</div> <div className="py-2 flex flex-row items-center space-x-3 ">
<div className="flex flex-col overflow-hidden h-full border-t border-muted"> <ImportPrebakeScriptButton updateEditor={handleSetCode} />
<Code containerRef={containerRef} editorRef={editorRef} init={init} /> <ActionButton onClick={() => exportScript(prebakeScript)}>export</ActionButton>
<ActionButton onClick={() => editorRef.current?.savePrebake()}>save</ActionButton>
</div>
</div> </div>
</div> </div>
); );