File tree Expand file tree Collapse file tree 4 files changed +27
-12
lines changed
release/share/git-webui/webui
src/share/git-webui/webui Expand file tree Collapse file tree 4 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -219,37 +219,40 @@ body {
219
219
# sidebar # sidebar-content # sidebar-vscode a {
220
220
color : white;
221
221
}
222
+ # sidebar # sidebar-content # sidebar-vscode h4 {
223
+ padding : 0px ;
224
+ }
222
225
# sidebar # sidebar-content # sidebar-vscode h4 : before {
223
226
content : url(../ img/file.svg);
224
227
}
225
228
# sidebar # sidebar-content # sidebar-vscode {
226
229
position : absolute;
227
230
bottom : 80px ;
228
231
width : 16.7em ;
229
- padding-bottom : 0.3rem ;
230
- margin-bottom : 0 ;
231
232
background-color : # 333333 ;
232
233
}
234
+ # sidebar # sidebar-content # sidebar-context h4 {
235
+ padding : 0px ;
236
+ }
233
237
# sidebar # sidebar-content # sidebar-context h4 : before {
234
238
content : url(../ img/context.svg);
235
239
}
236
240
# sidebar # sidebar-content # sidebar-context {
237
241
position : absolute;
238
242
bottom : 40px ;
239
243
width : 16.7em ;
240
- padding-bottom : 0.3rem ;
241
- margin-bottom : 0 ;
242
244
background-color : # 333333 ;
243
245
}
246
+ # sidebar # sidebar-content # sidebar-settings h4 {
247
+ padding : 0px ;
248
+ }
244
249
# sidebar # sidebar-content # sidebar-settings h4 : before {
245
250
content : url(../ img/gear-fill.svg);
246
251
}
247
252
# sidebar # sidebar-content # sidebar-settings {
248
253
position : absolute;
249
254
bottom : 0px ;
250
255
width : 16.7em ;
251
- padding-bottom : 0.3rem ;
252
- margin-bottom : 0px ;
253
256
background-color : # 333333 ;
254
257
}
255
258
# sidebar # sidebar-content ul {
Original file line number Diff line number Diff line change @@ -421,6 +421,9 @@ webui.SideBarView = function(mainView, noEventHandlers) {
421
421
if ( id . indexOf ( "local-branches" ) > - 1 ) {
422
422
// parses the output of git branch --verbose --verbose
423
423
var matches = / ^ \* ? \s * ( [ \w -\/ ] + ) \s + ( [ ^ \s ] + ) \s + ( \[ .* \] ) ? .* / . exec ( ref ) ;
424
+ if ( ! matches ) {
425
+ continue ;
426
+ }
424
427
var branchInfo = {
425
428
"branch_name" : matches [ 1 ] ,
426
429
"hash" : matches [ 2 ] ,
Original file line number Diff line number Diff line change @@ -305,6 +305,10 @@ body {
305
305
color : white ;
306
306
}
307
307
308
+ #sidebar-vscode h4 {
309
+ padding : 0px ;
310
+ }
311
+
308
312
#sidebar-vscode h4 :before {
309
313
content : url(../img/file.svg ) ;
310
314
}
@@ -313,11 +317,13 @@ body {
313
317
position : absolute ;
314
318
bottom : 80px ;
315
319
width : 16.7em ;
316
- padding-bottom : 0.3rem ;
317
- margin-bottom : 0 ;
318
320
background-color : rgba (51 , 51 , 51 , 1 );
319
321
}
320
322
323
+ #sidebar-context h4 {
324
+ padding : 0px ;
325
+ }
326
+
321
327
#sidebar-context h4 :before {
322
328
content : url(../img/context.svg ) ;
323
329
}
@@ -326,11 +332,13 @@ body {
326
332
position : absolute ;
327
333
bottom : 40px ;
328
334
width : 16.7em ;
329
- padding-bottom : 0.3rem ;
330
- margin-bottom : 0 ;
331
335
background-color : rgba (51 , 51 , 51 , 1 );
332
336
}
333
337
338
+ #sidebar-settings h4 {
339
+ padding : 0px ;
340
+ }
341
+
334
342
#sidebar-settings h4 :before {
335
343
content : url(../img/gear-fill.svg ) ;
336
344
}
@@ -339,8 +347,6 @@ body {
339
347
position : absolute ;
340
348
bottom : 0px ;
341
349
width : 16.7em ;
342
- padding-bottom : 0.3rem ;
343
- margin-bottom :0px ;
344
350
background-color : rgba (51 , 51 , 51 , 1 );
345
351
}
346
352
Original file line number Diff line number Diff line change @@ -421,6 +421,9 @@ webui.SideBarView = function(mainView, noEventHandlers) {
421
421
if ( id . indexOf ( "local-branches" ) > - 1 ) {
422
422
// parses the output of git branch --verbose --verbose
423
423
var matches = / ^ \* ? \s * ( [ \w -\/ ] + ) \s + ( [ ^ \s ] + ) \s + ( \[ .* \] ) ? .* / . exec ( ref ) ;
424
+ if ( ! matches ) {
425
+ continue ;
426
+ }
424
427
var branchInfo = {
425
428
"branch_name" : matches [ 1 ] ,
426
429
"hash" : matches [ 2 ] ,
You can’t perform that action at this time.
0 commit comments