diff --git a/platform/collaboration-tools/src/com/intellij/collaboration/ui/util/popup/popupItemRenderers.kt b/platform/collaboration-tools/src/com/intellij/collaboration/ui/util/popup/popupItemRenderers.kt index 98caad58f3b7..f28426d491b8 100644 --- a/platform/collaboration-tools/src/com/intellij/collaboration/ui/util/popup/popupItemRenderers.kt +++ b/platform/collaboration-tools/src/com/intellij/collaboration/ui/util/popup/popupItemRenderers.kt @@ -25,11 +25,13 @@ class SimplePopupItemRenderer private constructor(private val presenter: (T) override fun customizeCellRenderer(list: JList, value: T, index: Int, selected: Boolean, hasFocus: Boolean) { val presentation = presenter(value) icon = presentation.icon - append(presentation.shortText) val fullText = presentation.fullText if (fullText != null) { + append(fullText) append(" ") - append(fullText, SimpleTextAttributes.GRAYED_ATTRIBUTES) + append(presentation.shortText, SimpleTextAttributes.GRAYED_ATTRIBUTES) + } else { + append(presentation.shortText) } // ColoredListCellRenderer sets null for a background in case of !selected, so it can't work with SelectablePanel