move prebake nav down
This commit is contained in:
parent
7b58bbf12b
commit
6707c7893b
1 changed files with 12 additions and 22 deletions
|
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue