I really dislike the way expanding the references section on a document causes a portal to appear which you then need to hit X to remove. It also creates a weird extra hanging bullet underneath and is just not very fun in general:
The ideal design would be that when you press the toggle, the RESULTS of the portal search show up (e.g. only this:
There shouldn’t be any extra bullet underneath or on top. Honestly, this visual change would make using the linked references so much more intuitive and simple. See Roam’s implementation if you want more inspiration.