Skip to content

Commit d47e7d9

Browse files
committed
Make the sidebar more compact
Compacted the sidebar; Fixed alignment of icons
1 parent b8bc46d commit d47e7d9

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515
- Fixed display of other users' username in workspace view on Unix (#530)
16+
- Fix left-sidebar spacing (#525)
1617

1718
## [2.6.0] - 2024-10-07
1819

git-webui/release/share/git-webui/webui/css/git-webui.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ body {
192192
}
193193
#sidebar #sidebar-content h4 {
194194
vertical-align: baseline;
195-
margin: 0.5em 0 0 0;
195+
margin: 0.25em 0 0 0;
196196
}
197197
#sidebar #sidebar-content > section h4 {
198198
font-size: 125%;
199199
cursor: pointer;
200-
padding: 10px 0;
200+
padding: 5px 0;
201201
}
202202
#sidebar #sidebar-content #sidebar-workspace h4:before {
203203
content: url(../img/computer.svg);
@@ -230,7 +230,7 @@ body {
230230
}
231231
#sidebar #sidebar-content #sidebar-vscode {
232232
position: absolute;
233-
bottom: 90px;
233+
bottom: 70px;
234234
width: 16.7em;
235235
background-color: #333333;
236236
}
@@ -242,7 +242,7 @@ body {
242242
}
243243
#sidebar #sidebar-content #sidebar-context {
244244
position: absolute;
245-
bottom: 50px;
245+
bottom: 40px;
246246
width: 16.7em;
247247
background-color: #333333;
248248
}
@@ -266,7 +266,7 @@ body {
266266
}
267267
#sidebar #sidebar-content #sidebar-home {
268268
position: absolute;
269-
bottom: 130px;
269+
bottom: 100px;
270270
width: 16.7em;
271271
background-color: #333333;
272272
}
Lines changed: 1 addition & 1 deletion
Loading

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,13 +985,13 @@ webui.SideBarView = function(mainView, noEventHandlers) {
985985
'<h4>Discarded Files</h4>' +
986986
'</section>' +
987987
'<section id="sidebar-local-branches">' +
988-
'<h4 class="mt-3">Local Branches' +
988+
'<h4 class="mt-1">Local Branches' +
989989
'<button type="button" class="btn btn-default btn-sidebar-icon btn-add shadow-none" >' +
990990
webui.circlePlusIcon+
991991
'</button>' + '</h4>' +
992992
'</section>' +
993993
'<section id="sidebar-remote-branches">' +
994-
'<h4 class="mt-3">Remote Branches' +
994+
'<h4 class="mt-1">Remote Branches' +
995995
'<button type="button" class="btn btn-default btn-sidebar-icon btn-prune-remote-branches shadow-none" >'+
996996
webui.refreshIcon+
997997
'</button>' +'</h4>' +

git-webui/src/share/git-webui/webui/css/git-webui.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,14 @@ body {
268268

269269
h4 {
270270
vertical-align: baseline;
271-
margin: 0.5em 0 0 0;
271+
margin: 0.25em 0 0 0;
272272
}
273273

274274
> section {
275275
h4 {
276276
font-size: 125%;
277277
cursor: pointer;
278-
padding: @padding-large-vertical 0;
278+
padding: @padding-small-vertical 0;
279279
}
280280
}
281281

@@ -319,7 +319,7 @@ body {
319319

320320
#sidebar-vscode {
321321
position: absolute;
322-
bottom: 90px;
322+
bottom: 70px;
323323
width: 16.7em;
324324
background-color: rgba(51, 51, 51, 1);
325325
}
@@ -334,7 +334,7 @@ body {
334334

335335
#sidebar-context {
336336
position: absolute;
337-
bottom: 50px;
337+
bottom: 40px;
338338
width: 16.7em;
339339
background-color: rgba(51, 51, 51, 1);
340340
}
@@ -364,7 +364,7 @@ body {
364364

365365
#sidebar-home {
366366
position: absolute;
367-
bottom: 130px;
367+
bottom: 100px;
368368
width: 16.7em;
369369
background-color: rgba(51, 51, 51, 1);
370370
}
Lines changed: 1 addition & 1 deletion
Loading

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,13 +985,13 @@ webui.SideBarView = function(mainView, noEventHandlers) {
985985
'<h4>Discarded Files</h4>' +
986986
'</section>' +
987987
'<section id="sidebar-local-branches">' +
988-
'<h4 class="mt-3">Local Branches' +
988+
'<h4 class="mt-1">Local Branches' +
989989
'<button type="button" class="btn btn-default btn-sidebar-icon btn-add shadow-none" >' +
990990
webui.circlePlusIcon+
991991
'</button>' + '</h4>' +
992992
'</section>' +
993993
'<section id="sidebar-remote-branches">' +
994-
'<h4 class="mt-3">Remote Branches' +
994+
'<h4 class="mt-1">Remote Branches' +
995995
'<button type="button" class="btn btn-default btn-sidebar-icon btn-prune-remote-branches shadow-none" >'+
996996
webui.refreshIcon+
997997
'</button>' +'</h4>' +

0 commit comments

Comments
 (0)