Eliminate flicker when contact status is pending

We do this by using a bullet. When we have animations, a spinner would be better.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-05-10 17:32:57 +02:00
parent b00338195e
commit 6c3e3c84ec

View File

@ -113,7 +113,7 @@ impl PickerDelegate for ContactFinder {
let label = match request_status {
ContactRequestStatus::None | ContactRequestStatus::RequestReceived => "+",
ContactRequestStatus::RequestSent => "-",
ContactRequestStatus::Pending | ContactRequestStatus::RequestAccepted => "",
ContactRequestStatus::Pending | ContactRequestStatus::RequestAccepted => "",
};
let style = theme.picker.item.style_for(mouse_state, selected);
Flex::row()