Skip to content

🎥 Make videos programmatically with React

quick fix

Patric Salvisberg359063889add
diff --git a/packages/cli/src/editor/components/MenuToolbar.tsx b/packages/cli/src/editor/components/MenuToolbar.tsx
index 6c31406faa..a3f182477c 100644
--- a/packages/cli/src/editor/components/MenuToolbar.tsx
+++ b/packages/cli/src/editor/components/MenuToolbar.tsx
@@ -21,8 +21,18 @@ const row: React.CSSProperties = {
backgroundColor: BACKGROUND,
};
-const fixedWidth: React.CSSProperties = {
+const fixedWidthRight: React.CSSProperties = {
minWidth: '300px',
+ display: 'flex',
+ justifyContent: 'flex-end',
+ alignItems: 'center',
+};
+
+const fixedWidthLeft: React.CSSProperties = {
+ minWidth: '300px',
+ display: 'flex',
+ justifyContent: 'flex-start',
+ alignItems: 'center',
};
const flex: React.CSSProperties = {
@@ -88,7 +98,7 @@ export const MenuToolbar: React.FC = () => {
return (
<Row justify="center" align="center" className="css-reset" style={row}>
- <div style={fixedWidth}>
+ <div style={fixedWidthLeft}>
{structure.map((s) => {
return (
<MenuItem
@@ -112,9 +122,10 @@ export const MenuToolbar: React.FC = () => {
<div style={flex} />
<MenuBuildIndicator />
<div style={flex} />
- <div style={fixedWidth} />
+ <div style={fixedWidthRight}>
+ <SidebarCollapserControls />
+ </div>
<Spacing x={1} />
- <SidebarCollapserControls />
</Row>
);
};
diff --git a/packages/cli/src/editor/components/SidebarCollapserControls.tsx b/packages/cli/src/editor/components/SidebarCollapserControls.tsx
index edbe9eab47..0552bcf5c6 100644
--- a/packages/cli/src/editor/components/SidebarCollapserControls.tsx
+++ b/packages/cli/src/editor/components/SidebarCollapserControls.tsx
@@ -7,7 +7,6 @@ import {
import {SidebarContext} from '../state/sidebar';
import type {RenderInlineAction} from './InlineAction';
import {InlineAction} from './InlineAction';
-import {Row} from './layout';
import {useResponsiveSidebarStatus} from './TopPanel';
const style: React.CSSProperties = {
@@ -163,9 +162,9 @@ export const SidebarCollapserControls: React.FC<{}> = () => {
);
return (
- <Row>
+ <>
<InlineAction onClick={toggleLeft} renderAction={toggleLeftAction} />
<InlineAction onClick={toggleRight} renderAction={toggleRightAction} />
- </Row>
+ </>
);
};