diff --git a/src/components/EditorWidgets/List/ListControl.js b/src/components/EditorWidgets/List/ListControl.js index a5aadc59c307..775a3c6d4891 100644 --- a/src/components/EditorWidgets/List/ListControl.js +++ b/src/components/EditorWidgets/List/ListControl.js @@ -245,6 +245,7 @@ export default class ListControl extends Component { onAddAsset={onAddAsset} onRemoveInsertedMedia={onRemoveInsertedMedia} classNameWrapper={`${classNameWrapper} nc-listControl-objectControl`} + forList /> ); }; diff --git a/src/components/EditorWidgets/Object/Object.css b/src/components/EditorWidgets/Object/Object.css index 3adba5d27da7..dfae6943ca09 100644 --- a/src/components/EditorWidgets/Object/Object.css +++ b/src/components/EditorWidgets/Object/Object.css @@ -1,3 +1,12 @@ .nc-objectControl-root { - padding: 14px; + padding: 0 14px; +} + +.nc-objectControl-topBar { + align-items: center; + background-color: #dfdfe3; + display: flex; + justify-content: space-between; + margin: 0 -14px; + padding: 13px; } diff --git a/src/components/EditorWidgets/Object/ObjectControl.js b/src/components/EditorWidgets/Object/ObjectControl.js index c7699376f0e4..7aa8d869b62d 100644 --- a/src/components/EditorWidgets/Object/ObjectControl.js +++ b/src/components/EditorWidgets/Object/ObjectControl.js @@ -5,16 +5,18 @@ import { Map } from 'immutable'; import { partial } from 'lodash'; import c from 'classnames'; import { resolveWidget } from 'Lib/registry'; +import { Icon } from 'UI'; import EditorControl from 'Editor/EditorControlPane/EditorControl'; -const TopBar = ({ collapsed, onCollapseToggle }) => -