Skip to content

Commit 4ef8c4c

Browse files
committed
fix: add padding for call hierarchy
1 parent bba136a commit 4ef8c4c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

styles/atom-ide-outline.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
line-height: var(--editor-line-height);
2323
}
2424

25+
@padding-h: 10px;
26+
@padding-v: 2px;
27+
2528
.atom-ide-outline {
2629
display: flex;
2730
flex-direction: column;
@@ -39,8 +42,6 @@
3942
}
4043

4144
@fold-width: 8px;
42-
@padding-h: 10px;
43-
@padding-v: 2px;
4445

4546
--editor-tab-length: 4; // default
4647
--level-indent-size: 16px;

styles/call-hierarchy.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
@import "./atom-ide-outline.less";
33

44
atom-ide-outline-call-hierarchy-view {
5+
padding: @padding-v;
6+
57
> div:first-child {
68
.font-common();
79
display: flex;
@@ -10,7 +12,7 @@ atom-ide-outline-call-hierarchy-view {
1012
&:first-child > div {
1113
flex-grow: 1;
1214
text-align: center;
13-
padding: 0;
15+
padding: @padding-v + 2px;
1416
border-bottom: 2px solid @background-color-highlight;
1517
overflow: hidden;
1618
}
@@ -24,6 +26,7 @@ atom-ide-outline-call-hierarchy-view {
2426
background: @background-color-highlight;
2527
}
2628
> div:last-child {
29+
padding: @padding-v @padding-h;
2730
height: calc(~"100% - 36px");
2831
overflow-x: auto;
2932
> atom-ide-outline-call-hierarchy-item {
@@ -54,6 +57,7 @@ atom-ide-outline-call-hierarchy-item {
5457
white-space: nowrap;
5558
flex-grow: 1;
5659
flex-shrink: 0;
60+
padding: @padding-v 0;
5761
}
5862
}
5963
> .call-hierarchy-exist-child-data > .icon::before {

0 commit comments

Comments
 (0)