From 75f3312fcae1bb7df7b80c82318baf608ed75b44 Mon Sep 17 00:00:00 2001 From: Ben Rohlfs Date: Tue, 4 Feb 2020 11:29:34 +0100 Subject: [PATCH] Fix rendering of removed votes in Change Log Change 251800 was too aggressive with removing information on "Patch set $N: ...: lines. For normal votes the removal was fine, because it was redundant information. But the dedicated vote chips did not work for vote removals. So with this change we keep being aggressive and remove the entire "Patch Set $N: ..." line, but we create vote chips also for vote removals. Change-Id: Ia721552f08528c76bde469ed85b76d12783b761b --- .../change/gr-message/gr-message.html | 5 +++- .../elements/change/gr-message/gr-message.js | 28 ++++++++++++++----- .../change/gr-message/gr-message_test.html | 23 +++++++++++++-- 3 files changed, 46 insertions(+), 10 deletions(-) diff --git a/polygerrit-ui/app/elements/change/gr-message/gr-message.html b/polygerrit-ui/app/elements/change/gr-message/gr-message.html index a972565827..2ea1134b4a 100644 --- a/polygerrit-ui/app/elements/change/gr-message/gr-message.html +++ b/polygerrit-ui/app/elements/change/gr-message/gr-message.html @@ -156,6 +156,9 @@ limitations under the License. .commentsIcon { vertical-align: top; } + .score.removed { + background-color: var(--vote-color-neutral); + } .score.negative { background-color: var(--vote-color-disliked); } @@ -195,7 +198,7 @@ limitations under the License. on behalf of -