diff --git a/editor/src/components/inspector/controls/advanced-grid-modal.tsx b/editor/src/components/inspector/controls/advanced-grid-modal.tsx index ec8fb4cb4abb..463dd8ff574e 100644 --- a/editor/src/components/inspector/controls/advanced-grid-modal.tsx +++ b/editor/src/components/inspector/controls/advanced-grid-modal.tsx @@ -14,7 +14,7 @@ import { separatorRadixSelectOption, } from '../../../uuiui/radix-components' import { optionalMap } from '../../../core/shared/optional-utils' -import type { FlexAlignment } from 'utopia-api/core' +import { FlexAlignment } from 'utopia-api/core' import { FlexJustifyContent } from 'utopia-api/core' import { GridAutoColsOrRowsControlInner } from '../grid-auto-cols-or-rows-control' import { Substores, useEditorState, useRefEditorState } from '../../editor/store/store-hook' @@ -79,12 +79,18 @@ export const AdvancedGridModal = React.memo((props: AdvancedGridModalProps) => { [alignItemsLayoutInfo], ) - const contentOptions = [ + const justifyOptions = [ unsetSelectOption, separatorRadixSelectOption(), ...Object.values(FlexJustifyContent).map(selectOption), ] + const alignOptions = [ + unsetSelectOption, + separatorRadixSelectOption(), + ...Object.values(FlexAlignment).map(selectOption), + ] + const onSubmitJustifyContent = React.useCallback( (value: string) => { if (value === 'unset') { @@ -187,7 +193,7 @@ export const AdvancedGridModal = React.memo((props: AdvancedGridModalProps) => { {