Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20821 closed Bug (fixed)

Permission names can be longer than the select box they are in

Reported by: django@… Owned by: Rudy Mutter
Component: contrib.admin Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the edit group / user pages, permission names are often larger than the select box they are placed in, which results in you being unable to see what permissions you are adding without some form of ugly workaround such as making the box larger with chromes inspect element. I've attached a screenshot demonstrating this issue.

Some possible ideas to fix this...
1) Make the select box resizeable
2) Make the select box larger
3) Make the select box have a horizontal scroll bar if required
4) Display the full permission name in a tool tip on mouse over

Attachments (1)

2013-07-29-155137_724x437_scrot.png (44.1 KB ) - added by django@… 11 years ago.
screenshot demonstrating permissions overflowing beyond the end of the select box

Download all attachments as: .zip

Change History (7)

by django@…, 11 years ago

screenshot demonstrating permissions overflowing beyond the end of the select box

comment:1 by Tim Graham, 11 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Rudy Mutter, 11 years ago

Owner: changed from nobody to Rudy Mutter
Status: newassigned

comment:3 by Aymeric Augustin, 11 years ago

I think I already made the selection box larger (likely in 1.6). Can you check how it looks like in the master branch?

comment:4 by Rudy Mutter, 11 years ago

It is now bigger in master than in the screenshot attached to this ticket. People using this widget in the admin still could have select options that overflow outside the box. I've got a pull request that adds tooltips to the options using the built in 'title' attribute on HTML option elements here: https://github.com/rmutter/django/commit/c438cc2a3653644ea42987f7e65f6f638ca85f6c.

comment:5 by Rudy Mutter <rudy@…>, 11 years ago

Resolution: fixed
Status: assignedclosed

In c438cc2a3653644ea42987f7e65f6f638ca85f6c:

Fixed #20821 -- Added tooltips to Admin SelectBox widget

The Admin widget, which can be used to filter multiple selects
can sometimes be too narrow and hide information such as
user permissions. This commit adds tooltips to the select
options so that a user can hover over and see the hidden text.

comment:6 by Julien Phalip <jphalip@…>, 11 years ago

In d5df914fe14fd96cec1cd3465852b8da72e7c5f6:

Merge pull request #1578 from rmutter/ticket_20821

Fixed #20821 -- Added tooltips to Admin SelectBox widget

Note: See TracTickets for help on using tickets.
Back to Top