Skip to content

Commit 913c310

Browse files
committed
Add whitespace to gutters
1 parent 0df35af commit 913c310

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/compass-editor/src/editor.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
13921399
const 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

0 commit comments

Comments
 (0)