diff --git a/editor/src/components/canvas/canvas-floating-toolbars.tsx b/editor/src/components/canvas/canvas-floating-toolbars.tsx index 2dfe141ed070..eac19c39c880 100644 --- a/editor/src/components/canvas/canvas-floating-toolbars.tsx +++ b/editor/src/components/canvas/canvas-floating-toolbars.tsx @@ -33,7 +33,7 @@ export const CanvasFloatingToolbars = React.memo((props: { style: React.CSSPrope top: 0, alignItems: 'flex-start', justifyContent: 'space-between', - padding: 10, + padding: 6, width: '100%', height: '100%', }} diff --git a/editor/src/components/editor/canvas-toolbar.tsx b/editor/src/components/editor/canvas-toolbar.tsx index 245e19d52153..77c4d95a0151 100644 --- a/editor/src/components/editor/canvas-toolbar.tsx +++ b/editor/src/components/editor/canvas-toolbar.tsx @@ -380,21 +380,23 @@ export const CanvasToolbar = React.memo(() => { const wrapInSubmenu = React.useCallback((wrapped: React.ReactNode) => { return ( - - {wrapped} - + {wrapped} + ) }, []) @@ -440,14 +442,15 @@ export const CanvasToolbar = React.memo(() => { id={CanvasToolbarId} style={{ backgroundColor: theme.inspectorBackground.value, - borderRadius: UtopiaTheme.panelStyles.panelBorderRadius, + borderRadius: 6, overflow: 'hidden', boxShadow: UtopiaStyles.shadowStyles.low.boxShadow, pointerEvents: 'initial', display: 'flex', flexDirection: 'row', alignItems: 'center', - padding: '0 6px 0 8px', + padding: 3, + gap: 8, }} > @@ -458,7 +461,6 @@ export const CanvasToolbar = React.memo(() => { onClick={dispatchSwitchToSelectModeCloseMenus} keepActiveInLiveMode testid={CanvasToolbarEditButtonID} - style={{ width: 36 }} /> {when( @@ -471,7 +473,6 @@ export const CanvasToolbar = React.memo(() => { primary={canvasToolbarMode.primary === 'text'} onClick={insertTextCallback} keepActiveInLiveMode - style={{ width: 36 }} /> @@ -482,7 +483,6 @@ export const CanvasToolbar = React.memo(() => { primary={canvasToolbarMode.primary === 'insert'} onClick={toggleInsertButtonClicked} keepActiveInLiveMode - style={{ width: 36 }} /> , @@ -495,12 +495,11 @@ export const CanvasToolbar = React.memo(() => { primary={canvasToolbarMode.primary === 'play'} onClick={toggleLiveMode} keepActiveInLiveMode - style={{ width: 36 }} /> {when( canComment, -
+
{ primary={canvasToolbarMode.primary === 'comment'} onClick={toggleCommentMode} keepActiveInLiveMode - style={{ width: 36 }} disabled={commentButtonDisabled} /> @@ -522,9 +520,8 @@ export const CanvasToolbar = React.memo(() => { { return ( { width: 1, height: 16, alignSelf: 'center', - margin: '0 8px', + margin: '0 4px', backgroundColor: colorTheme.seperator.value, }} >
diff --git a/editor/src/components/editor/elements-outside-visible-area-indicator.tsx b/editor/src/components/editor/elements-outside-visible-area-indicator.tsx index f7311c86bf88..12f32d09a8b8 100644 --- a/editor/src/components/editor/elements-outside-visible-area-indicator.tsx +++ b/editor/src/components/editor/elements-outside-visible-area-indicator.tsx @@ -44,9 +44,7 @@ export const ElementsOutsideVisibleAreaIndicator = React.memo(() => { style={{ textAlign: 'center', width: 'min-content', - minWidth: 32, - height: 32, - padding: '0 8px', + padding: '0 8px 0px 2px', position: 'relative', color: colorTheme.dynamicBlue.value, }} diff --git a/editor/src/components/editor/remix-navigation-bar.tsx b/editor/src/components/editor/remix-navigation-bar.tsx index 8dda3a81f621..256d9607d1f5 100644 --- a/editor/src/components/editor/remix-navigation-bar.tsx +++ b/editor/src/components/editor/remix-navigation-bar.tsx @@ -180,10 +180,11 @@ export const RemixNavigationBar = React.memo(() => { style={{ backgroundColor: colorTheme.bg3.value, borderRadius: 20, - padding: '2px 10px', + padding: '2px 2px 2px 6px', fontSize: 11, minWidth: 150, - height: '30px', + height: 20, + alignItems: 'center', }} >