commit | d6e61f27b860006aa6d0bf071e31ae73b8b599f4 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Feb 18 08:51:08 2021 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Feb 18 09:43:21 2021 +0000 |
tree | 482f50b8001f5e7498eae559f1d58456a8915612 | |
parent | 1aacfecaba210bd8e8494e08ceb7d3de3b6fd3d2 [diff] |
Decorate the number line element of a blank side The blank side of a side-by-side diff still needs the normal class decoration, including the 'left' or 'right' CSS class, otherwise it won't be affected by the "hide-left" action to hide one side of the diff. Bug: Issue 14104 Change-Id: I3c02aad282d2fb5dbd9259f815ac41cc975da644
diff --git a/polygerrit-ui/app/elements/diff/gr-diff-builder/gr-diff-builder.js b/polygerrit-ui/app/elements/diff/gr-diff-builder/gr-diff-builder.js index 948002a..42fd6ea 100644 --- a/polygerrit-ui/app/elements/diff/gr-diff-builder/gr-diff-builder.js +++ b/polygerrit-ui/app/elements/diff/gr-diff-builder/gr-diff-builder.js
@@ -294,6 +294,7 @@ line, number, type, side) { const td = this._createElement('td'); if (line.type === GrDiffLine.Type.BLANK) { + td.classList.add(side); return td; } if (line.type === GrDiffLine.Type.CONTEXT_CONTROL) {