Close listed items in inline Ref Column


Hi everyone, I was wondering if there is a way to close a List of items and only show Title or categories, instead of all the rows Just like in this post: But with the difference that im trying to do this not on a Table View, but on a Inline View of a Ref Column.

I tried whats recommended in the post but it doesnt work. Any ideas?