From a9ea52575702ec0b330151a740fb26c0e6296d4c Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 28 Jan 2022 13:39:32 +0000 Subject: [PATCH] pm list: Remove obsolete user_circle_fraction class. --- frontend_tests/node_tests/pm_list.js | 4 ++-- static/js/pm_list.js | 4 +--- static/styles/user_circles.css | 7 +------ 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/frontend_tests/node_tests/pm_list.js b/frontend_tests/node_tests/pm_list.js index d958b00ecb..1ad1bb590a 100644 --- a/frontend_tests/node_tests/pm_list.js +++ b/frontend_tests/node_tests/pm_list.js @@ -93,7 +93,7 @@ test("build_private_messages_list", ({override}) => { is_zero: false, is_active: false, url: "#narrow/pm-with/101,102-group", - user_circle_class: "user_circle_fraction", + user_circle_class: undefined, is_group: true, }, ]; @@ -143,7 +143,7 @@ test("build_private_messages_list_bot", ({override}) => { is_zero: false, is_active: false, url: "#narrow/pm-with/101,102-group", - user_circle_class: "user_circle_fraction", + user_circle_class: undefined, is_group: true, }, ]; diff --git a/static/js/pm_list.js b/static/js/pm_list.js index dd8e5a1e60..810cfc8271 100644 --- a/static/js/pm_list.js +++ b/static/js/pm_list.js @@ -76,9 +76,7 @@ export function _get_convos() { let user_circle_class; - if (is_group) { - user_circle_class = "user_circle_fraction"; - } else { + if (!is_group) { const user_id = Number.parseInt(user_ids_string, 10); user_circle_class = buddy_data.get_user_circle_class(user_id); const recipient_user_obj = people.get_by_user_id(user_id); diff --git a/static/styles/user_circles.css b/static/styles/user_circles.css index 26c17f8688..10a49bcafb 100644 --- a/static/styles/user_circles.css +++ b/static/styles/user_circles.css @@ -1,8 +1,7 @@ .user_circle_green, .user_circle_orange, .user_circle_empty, -.user_circle_empty_line, -.user_circle_fraction { +.user_circle_empty_line { border-radius: 50%; border: 1px solid; float: left; @@ -12,10 +11,6 @@ .user_circle_green { background-color: hsl(106, 74%, 44%); -} - -.user_circle_green, -.user_circle_fraction { border-color: hsl(106, 74%, 44%); }