File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/compass-editor/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1389,6 +1389,13 @@ const multilineEditorContainerWithActionsStyle = css({
13891389 minHeight : spacing [ 5 ] - 2 ,
13901390} ) ;
13911391
1392+ const multilineEditorContainerWithExpandStyle = css ( {
1393+ [ '& .cm-gutters' ] : {
1394+ // Offset to prevent the "expand" button from overlapping with fold / unfold icons
1395+ paddingLeft : spacing [ 500 ] ,
1396+ } ,
1397+ } ) ;
1398+
13921399const multilineEditorContainerDarkModeStyle = css ( {
13931400 backgroundColor : editorPalette . dark . backgroundColor ,
13941401} ) ;
@@ -1473,6 +1480,7 @@ const MultilineEditor = React.forwardRef<EditorRef, MultilineEditorProps>(
14731480 multilineEditorContainerStyle ,
14741481 darkMode && multilineEditorContainerDarkModeStyle ,
14751482 hasActions && multilineEditorContainerWithActionsStyle ,
1483+ onExpand && multilineEditorContainerWithExpandStyle ,
14761484 className
14771485 ) }
14781486 // We want folks to be able to click into the container element
You can’t perform that action at this time.
0 commit comments