From fb0e4870b341c09b04b8e8d0d262cdf69730b70c Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 20 Oct 2021 11:40:04 -0700 Subject: [PATCH] fix #135424 --- .../workbench/contrib/notebook/browser/diff/diffComponents.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts b/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts index bd0469e7fe2..259fda6abfc 100644 --- a/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts +++ b/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts @@ -140,6 +140,7 @@ class PropertyHeader extends Disposable { this.propertyHeaderContainer.classList.add('modified'); } else { this._statusSpan.textContent = this.accessor.unChangedLabel; + this.propertyHeaderContainer.classList.remove('modified'); } const cellToolbarContainer = DOM.append(this.propertyHeaderContainer, DOM.$('div.property-toolbar')); @@ -230,6 +231,7 @@ class PropertyHeader extends Disposable { } else { this._statusSpan.textContent = this.accessor.unChangedLabel; this._statusSpan.style.fontWeight = 'normal'; + this.propertyHeaderContainer.classList.remove('modified'); this._toolbar.setActions([]); } } @@ -1334,6 +1336,8 @@ export class ModifiedElement extends AbstractElementRenderer { if (this.cell.checkIfOutputsModified()) { this._outputInfoContainer.classList.add('modified'); + } else { + this._outputInfoContainer.classList.remove('modified'); } this._outputHeader = this.instantiationService.createInstance(