Skip to content

Commit

Permalink
Fixes #212771 (#213584)
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet authored May 27, 2024
1 parent ce1941a commit 957f18b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,6 @@ class DiffToolBar extends Disposable implements IGutterItemView {
// Item might have changed
itemHeight = this._elements.buttons.clientHeight;

this._elements.root.style.top = itemRange.start + 'px';
this._elements.root.style.height = itemRange.length + 'px';

const middleHeight = itemRange.length / 2 - itemHeight / 2;

const margin = itemHeight;
Expand Down
4 changes: 4 additions & 0 deletions src/vs/editor/browser/widget/diffEditor/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@
flex-shrink: 0;
flex-grow: 0;

& > div {
position: absolute;
}

.gutterItem {
opacity: 0;
transition: opacity 0.7s;
Expand Down

0 comments on commit 957f18b

Please sign in to comment.