@@ -340,7 +340,6 @@ class ListDelegate implements IListVirtualDelegate<TreeElement> {
340340
341341interface HistoryItemTemplate {
342342 readonly element : HTMLElement ;
343- readonly margin : HTMLElement ;
344343 readonly label : IconLabel ;
345344 readonly graphContainer : HTMLElement ;
346345 readonly actionBar : WorkbenchToolBar ;
@@ -377,7 +376,6 @@ class HistoryItemRenderer implements ITreeRenderer<SCMHistoryItemViewModelTreeEl
377376 ( container . parentElement ! . parentElement ! . querySelector ( '.monaco-tl-twistie' ) ! as HTMLElement ) . classList . add ( 'force-no-twistie' ) ;
378377
379378 const element = append ( container , $ ( '.history-item' ) ) ;
380- const margin = append ( element , $ ( '.margin' ) ) ;
381379 const graphContainer = append ( element , $ ( '.graph-container' ) ) ;
382380 const iconLabel = new IconLabel ( element , {
383381 supportIcons : true , supportHighlights : true , supportDescriptionHighlights : true
@@ -388,7 +386,7 @@ class HistoryItemRenderer implements ITreeRenderer<SCMHistoryItemViewModelTreeEl
388386 const actionsContainer = append ( element , $ ( '.actions' ) ) ;
389387 const actionBar = new WorkbenchToolBar ( actionsContainer , undefined , this . _menuService , this . _contextKeyService , this . _contextMenuService , this . _keybindingService , this . _commandService , this . _telemetryService ) ;
390388
391- return { element, margin , graphContainer, label : iconLabel , labelContainer, actionBar, elementDisposables : new DisposableStore ( ) , disposables : combinedDisposable ( iconLabel , actionBar ) } ;
389+ return { element, graphContainer, label : iconLabel , labelContainer, actionBar, elementDisposables : new DisposableStore ( ) , disposables : combinedDisposable ( iconLabel , actionBar ) } ;
392390 }
393391
394392 renderElement ( node : ITreeNode < SCMHistoryItemViewModelTreeElement , LabelFuzzyScore > , index : number , templateData : HistoryItemTemplate , height : number | undefined ) : void {
@@ -401,11 +399,10 @@ class HistoryItemRenderer implements ITreeRenderer<SCMHistoryItemViewModelTreeEl
401399 } ) ;
402400 templateData . elementDisposables . add ( historyItemHover ) ;
403401
404- templateData . margin . style . borderLeftColor = asCssVariable ( getHistoryItemColor ( historyItemViewModel ) ) ;
405-
406402 templateData . graphContainer . textContent = '' ;
407403 templateData . graphContainer . classList . toggle ( 'current' , historyItemViewModel . isCurrent ) ;
408404 templateData . graphContainer . appendChild ( renderSCMHistoryItemGraph ( historyItemViewModel ) ) ;
405+ templateData . graphContainer . style . borderLeftColor = asCssVariable ( getHistoryItemColor ( historyItemViewModel ) ) ;
409406
410407 const historyItemRef = provider . historyProvider . get ( ) ?. historyItemRef ?. get ( ) ;
411408 const extraClasses = historyItemRef ?. revision === historyItem . id ? [ 'history-item-current' ] : [ ] ;
@@ -545,7 +542,6 @@ class HistoryItemRenderer implements ITreeRenderer<SCMHistoryItemViewModelTreeEl
545542
546543interface HistoryItemChangeTemplate {
547544 readonly element : HTMLElement ;
548- readonly margin : HTMLElement ;
549545 readonly graphPlaceholder : HTMLElement ;
550546 readonly resourceLabel : IResourceLabel ;
551547 readonly actionBar : WorkbenchToolBar ;
@@ -571,7 +567,6 @@ class HistoryItemChangeRenderer implements ITreeRenderer<SCMHistoryItemChangeVie
571567 ( container . parentElement ! . parentElement ! . querySelector ( '.monaco-tl-twistie' ) ! as HTMLElement ) . classList . add ( 'force-no-twistie' ) ;
572568
573569 const element = append ( container , $ ( '.history-item-change' ) ) ;
574- const margin = append ( element , $ ( '.margin' ) ) ;
575570 const graphPlaceholder = append ( element , $ ( '.graph-placeholder' ) ) ;
576571
577572 const labelContainer = append ( element , $ ( '.label-container' ) ) ;
@@ -584,17 +579,16 @@ class HistoryItemChangeRenderer implements ITreeRenderer<SCMHistoryItemChangeVie
584579 const actionBar = new WorkbenchToolBar ( actionsContainer , undefined , this . _menuService , this . _contextKeyService , this . _contextMenuService , this . _keybindingService , this . _commandService , this . _telemetryService ) ;
585580 disposables . add ( actionBar ) ;
586581
587- return { element, margin , graphPlaceholder, resourceLabel, actionBar, disposables } ;
582+ return { element, graphPlaceholder, resourceLabel, actionBar, disposables } ;
588583 }
589584
590585 renderElement ( element : ITreeNode < SCMHistoryItemChangeViewModelTreeElement , void > , index : number , templateData : HistoryItemChangeTemplate , height : number | undefined ) : void {
591586 const historyItemViewModel = element . element . historyItemViewModel ;
592587 const historyItemChange = element . element . historyItemChange ;
593588
594- templateData . margin . style . borderLeftColor = asCssVariable ( getHistoryItemColor ( historyItemViewModel ) ) ;
595-
596589 templateData . graphPlaceholder . textContent = '' ;
597590 templateData . graphPlaceholder . style . width = `${ SWIMLANE_WIDTH * ( element . element . graphColumns . length + 1 ) } px` ;
591+ templateData . graphPlaceholder . style . borderLeftColor = asCssVariable ( getHistoryItemColor ( historyItemViewModel ) ) ;
598592 templateData . graphPlaceholder . appendChild ( renderSCMHistoryGraphPlaceholder ( element . element . graphColumns ) ) ;
599593
600594 const uri = historyItemChange . uri ;
0 commit comments