Skip to content

Commit 479aba7

Browse files
committed
chore: update css of project dropdown to accomedate git branch dropdown
1 parent f047fb7 commit 479aba7

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

src/styles/Extn-RecentProjects.less

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,27 @@
4545
}
4646

4747
#project-dropdown-toggle {
48-
display: inline-block;
48+
display: flex;
4949
/* adjust margins to keep position #project-title position stable after extension is loaded */
50-
margin: -3px 5px -2px -6px;
5150
overflow: hidden;
52-
padding: 0 5px;
5351
white-space: nowrap;
52+
padding: 2px 5px;
53+
margin-left: -5px;
54+
.dropdown-arrow {
55+
display: inline-block;
56+
width: 7px;
57+
height: 5px;
58+
margin-left: 4px;
59+
position: relative;
60+
top: 7px;
61+
}
5462
}
5563

5664
#project-title {
57-
/* vertical align center text */
58-
height: 21px;
59-
line-height: 21px;
65+
display: inline-block;
66+
overflow: hidden;
67+
text-overflow: ellipsis;
68+
flex: 1 1 0;
6069
}
6170

6271
#project-dropdown-toggle:hover .dropdown-arrow {

src/styles/brackets.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,11 @@ a, img {
13251325
display: flex;
13261326
align-items: center;
13271327
border-top: 1px solid rgba(255, 255, 255, 0.05);
1328-
padding: 8px 0 9px 12px;
1328+
padding: 6px 0 6px 12px;
13291329
font-size: 15px;
13301330
color: @project-panel-text-2;
13311331
overflow: hidden;
1332+
gap: .5em;
13321333

13331334
.btn-alt-quiet {
13341335
background-color: #47484b;
@@ -1340,7 +1341,8 @@ a, img {
13401341
}
13411342

13421343
#project-operations-spinner{
1343-
margin-right: 7px;
1344+
margin-right: 5px;
1345+
margin-top: 0;
13441346
}
13451347

13461348
.open-files-container {

0 commit comments

Comments
 (0)