Code

Opened 9 months ago

Closed 7 months ago

Last modified 7 months ago

#20821 closed Bug (fixed)

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

Reported by: django@… Owned by: rmutter
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@… 9 months ago.
screenshot demonstrating permissions overflowing beyond the end of the select box

Download all attachments as: .zip

Change History (7)

Changed 9 months ago by django@…

screenshot demonstrating permissions overflowing beyond the end of the select box

comment:1 Changed 8 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 months ago by rmutter

  • Owner changed from nobody to rmutter
  • Status changed from new to assigned

comment:3 Changed 7 months ago by aaugustin

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 Changed 7 months ago by rmutter

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 Changed 7 months ago by Rudy Mutter <rudy@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

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 Changed 7 months ago by Julien Phalip <jphalip@…>

In d5df914fe14fd96cec1cd3465852b8da72e7c5f6:

Merge pull request #1578 from rmutter/ticket_20821

Fixed #20821 -- Added tooltips to Admin SelectBox widget

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.