Skip to content

Commit c9d6ac9

Browse files
committed
style: improve opened-editor padding style
1 parent 044c9bd commit c9d6ac9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/opened-editor/src/browser/opened-editor-node.module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164

165165
.opened_editor_left_actions {
166166
position: absolute;
167-
left: 14px;
167+
left: 0;
168168
}
169169

170170
.opened_editor_right_actions {

packages/opened-editor/src/browser/opened-editor-node.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ export const EditorTreeNode: React.FC<EditorNodeRenderedProps> = ({
6666
};
6767

6868
const paddingLeft = `${
69-
defaultLeftPadding + (item.depth || 0) * (leftPadding || 0) + (!EditorFileGroup.is(item) ? 16 : 0)
69+
defaultLeftPadding +
70+
(item.depth || 0) * (leftPadding || 0) +
71+
(!EditorFileGroup.is(item) && !EditorFileGroup.isRoot(item.parent) ? 16 : 0)
7072
}px`;
7173

7274
const editorNodeStyle = {

0 commit comments

Comments
 (0)