Skip to content

Commit 2d98550

Browse files
committed
Fix bottom navigation
Added margins to the bottom navigation so that the remote branches would not be visible underneath. Also added padding below remote branches to that they can all be visible with scrolling
1 parent 672a504 commit 2d98550

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ body {
219219
#sidebar #sidebar-content #sidebar-switch-branches h4:before {
220220
content: url(../img/branch.svg);
221221
}
222+
#sidebar #sidebar-content #space-filler {
223+
padding-bottom: 50px;
224+
}
222225
#sidebar #sidebar-content #sidebar-tags h4:before {
223226
content: url(../img/tag.svg);
224227
}
@@ -227,49 +230,53 @@ body {
227230
}
228231
#sidebar #sidebar-content #sidebar-vscode h4 {
229232
padding: 0px;
233+
margin-bottom: 10px;
230234
}
231235
#sidebar #sidebar-content #sidebar-vscode h4:before {
232236
content: url(../img/file.svg);
233237
}
234238
#sidebar #sidebar-content #sidebar-vscode {
235239
position: absolute;
236-
bottom: 70px;
240+
bottom: 60px;
237241
width: 16.7em;
238242
background-color: #333333;
239243
}
240244
#sidebar #sidebar-content #sidebar-context h4 {
241245
padding: 0px;
246+
margin-bottom: 10px;
242247
}
243248
#sidebar #sidebar-content #sidebar-context h4:before {
244249
content: url(../img/context.svg);
245250
}
246251
#sidebar #sidebar-content #sidebar-context {
247252
position: absolute;
248-
bottom: 40px;
253+
bottom: 30px;
249254
width: 16.7em;
250255
background-color: #333333;
251256
}
252257
#sidebar #sidebar-content #sidebar-settings h4 {
253258
padding: 0px;
259+
margin-bottom: 10px;
254260
}
255261
#sidebar #sidebar-content #sidebar-settings h4:before {
256262
content: url(../img/gear-fill.svg);
257263
}
258264
#sidebar #sidebar-content #sidebar-settings {
259265
position: absolute;
260-
bottom: 10px;
266+
bottom: 0;
261267
width: 16.7em;
262268
background-color: #333333;
263269
}
264270
#sidebar #sidebar-content #sidebar-home h4 {
265271
padding: 0px;
272+
margin-bottom: 10px;
266273
}
267274
#sidebar #sidebar-content #sidebar-home h4:before {
268275
content: url(../img/home.svg);
269276
}
270277
#sidebar #sidebar-content #sidebar-home {
271278
position: absolute;
272-
bottom: 100px;
279+
bottom: 90px;
273280
width: 16.7em;
274281
background-color: #333333;
275282
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
10081008
'<section id="sidebar-tags">' +
10091009
'<h4>Tags</h4>' +
10101010
'</section>' +
1011+
'<section id="space-filler"></section>'+
10111012
'<section id="sidebar-settings">' +
10121013
'<h4>Settings</h4>' +
10131014
'</section>' +

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ body {
305305
}
306306
}
307307

308+
#space-filler {
309+
padding-bottom: 50px;
310+
}
311+
308312
#sidebar-tags h4:before {
309313
content: url(../img/tag.svg);
310314
}
@@ -315,6 +319,7 @@ body {
315319

316320
#sidebar-vscode h4 {
317321
padding: 0px;
322+
margin-bottom: 10px;
318323
}
319324

320325
#sidebar-vscode h4:before {
@@ -323,13 +328,14 @@ body {
323328

324329
#sidebar-vscode {
325330
position: absolute;
326-
bottom: 70px;
331+
bottom: 60px;
327332
width: 16.7em;
328333
background-color: rgba(51, 51, 51, 1);
329334
}
330335

331336
#sidebar-context h4 {
332337
padding: 0px;
338+
margin-bottom: 10px;
333339
}
334340

335341
#sidebar-context h4:before {
@@ -338,13 +344,14 @@ body {
338344

339345
#sidebar-context {
340346
position: absolute;
341-
bottom: 40px;
347+
bottom: 30px;
342348
width: 16.7em;
343349
background-color: rgba(51, 51, 51, 1);
344350
}
345351

346352
#sidebar-settings h4 {
347353
padding: 0px;
354+
margin-bottom: 10px;
348355
}
349356

350357
#sidebar-settings h4:before {
@@ -353,13 +360,14 @@ body {
353360

354361
#sidebar-settings {
355362
position: absolute;
356-
bottom: 10px;
363+
bottom: 0;
357364
width: 16.7em;
358365
background-color: rgba(51, 51, 51, 1);
359366
}
360367

361368
#sidebar-home h4 {
362369
padding: 0px;
370+
margin-bottom: 10px;
363371
}
364372

365373
#sidebar-home h4:before {
@@ -368,7 +376,7 @@ body {
368376

369377
#sidebar-home {
370378
position: absolute;
371-
bottom: 100px;
379+
bottom: 90px;
372380
width: 16.7em;
373381
background-color: rgba(51, 51, 51, 1);
374382
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
10081008
'<section id="sidebar-tags">' +
10091009
'<h4>Tags</h4>' +
10101010
'</section>' +
1011+
'<section id="space-filler"></section>'+
10111012
'<section id="sidebar-settings">' +
10121013
'<h4>Settings</h4>' +
10131014
'</section>' +

0 commit comments

Comments
 (0)