Skip to content

Commit

Permalink
date_row: Update color via update_table_stream_color.
Browse files Browse the repository at this point in the history
Previously, the function update_table_stream_color did not update the
color of the date_row when it appeared within a topic.  This was
incorrect because it meant that a small piece of the border to the
left of the message box would be left to the previous color when the
stream color was updated.  This commit resolves the issue by adding an
update.

Fixes zulip#15197.
  • Loading branch information
PawBud authored and timabbott committed Jul 7, 2020
1 parent 0d7dbd1 commit bd6fe78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/js/stream_color.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function update_table_stream_color(table, stream_name, color) {
if ($.trim($label.text()) === stream_name) {
const messages = $label.closest(".recipient_row").children(".message_row");
messages.children(".messagebox").css("box-shadow", "inset 2px 0px 0px 0px " + style + ", -1px 0px 0px 0px " + style);
messages.children(".date_row").css("box-shadow", "inset 2px 0px 0px 0px " + style + ", -1px 0px 0px 0px " + style);
$label.css({background: style,
"border-left-color": style});
$label.removeClass(exports.color_classes);
Expand Down

0 comments on commit bd6fe78

Please sign in to comment.