Use a <table> for the related users option list.

Review Request #14135 — Created Sept. 2, 2024 and submitted

Information

Review Board
release-7.x

Reviewers

For the set of selected users when using a related users selector
widget, things were wrapping in terrible ways if there were long
usernames or real names. This change builds on a change in Djblets to
use a <table> for the layout of the options instead of a <ul>.

While in here, I also decided to make the widget a bit bigger, because
it was pretty small even for reasonable-sized desktop windows.

Created some users with very long names and added them to a group. Saw
that the users selector widget no longer looked terrible.

Summary ID
Use a <table> for the related users option list.
For the set of selected users when using a related users selector widget, things were wrapping in terrible ways if there were long usernames or real names. This change builds on a change in Djblets to use a <table> for the layout of the options instead of a <ul>. While in here, I also decided to make the widget a bit bigger, because it was pretty small even for reasonable-sized desktop windows. Testing Done: Created some users with very long names and added them to a group. Saw that the users selector widget no longer looked terrible.
64fe321bcd37f401f224eae3cfca6c70c3956646

Description From Last Updated

Can you show screenshots for both mobile and dark mode?

chipx86chipx86
maubin
  1. Ship It!
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    Can you show screenshots for both mobile and dark mode?

    1. We don't currently have good mobile support for this selector at all (screenshot attached). It's passable but we can't get around the minimum width area for now. Mobile will be on my mind for when we rewrite these things as components.

      Dark mode is only an issue for RBCommons because this widget is only used in the admin. I'll have a change up later to tweak some styles for that.

  3. 
      
david
david
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.x (6ba4683)