In VisualEditor, references with very long names or otherwise extreme content (e.g. a table) currently render terrible in the re-use dialog. Here is a before vs. after comparison for what the Patch-For-Review https://gerrit.wikimedia.org/r/1010895 currently proposes.
Notable:
- Long names are properly pushed to the right, and do not intersect with the text any more.
- Extremely large items have a limited height now.
- Vertical whitespace in an item is minimized to make it appear more clearly as one item.
Pending UX approval.
This came up while working on T360034.




