Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#14868 closed (fixed)

admin: prevent long text from overflowing recent actions box

Reported by: Chris Adams Owned by: Chris Adams
Component: contrib.admin Version: 1.2
Severity: Keywords: css, easy-pickings
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The recent actions text will overflow the container when the recent action contains something which cannot be word-wrapped normally, such as a filename, large number, etc.

The patch at https://github.com/acdha/django/compare/1.2.3...admin-recent-actions-text-overflow avoids this problem by setting the CSS text-overflow property, allowing normal word wrapping but causing the
browser to truncate text with an ellipsis when necessary

Attachments (3)

Screen shot 2010-12-08 at 11.19.18 AM.png (10.9 KB) - added by Chris Adams 6 years ago.
Example of overflow (IE8)
Screen shot 2010-12-08 at 11.33.59 AM.png (9.9 KB) - added by Chris Adams 6 years ago.
Example with the change (IE8)
admin-recent-actions-text-overflow.patch (1.1 KB) - added by Chris Adams 6 years ago.
Git-generated patch

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by Chris Adams

Example of overflow (IE8)

Changed 6 years ago by Chris Adams

Example with the change (IE8)

Changed 6 years ago by Chris Adams

Git-generated patch

comment:1 Changed 6 years ago by Chris Adams

Keywords: easy-pickings added; admin removed
Owner: changed from nobody to Chris Adams
Status: newassigned

comment:2 Changed 6 years ago by Jannis Leidel

Triage Stage: UnreviewedAccepted

comment:3 Changed 6 years ago by Jannis Leidel

Triage Stage: AcceptedReady for checkin

comment:4 Changed 6 years ago by Jannis Leidel

Resolution: fixed
Status: assignedclosed

(In [14892]) Fixed #14868 -- Added CSS rule to prevent long text from overflowing the "recent actions" box on the admin index page. Thanks, Chris Adams.

comment:5 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

comment:6 Changed 3 years ago by Loic Bistuer <loic.bistuer@…>

In 33fc083b0db392bd35bc9d5d9a141adb25537253:

Fixed overflow for the "Recent Actions" widget on the admin index.

Previously the CSS targeted "li.changelink" and therefore didn't
work for the "add" and "delete" actions.

Refs #14868.

comment:7 Changed 3 years ago by Tim Graham <timograham@…>

In 39db994790d3e98b7558618c3dbfb2163e1a530c:

[1.6.x] Fixed overflow for the "Recent Actions" widget on the admin index.

Previously the CSS targeted "li.changelink" and therefore didn't
work for the "add" and "delete" actions.

Refs #14868.

Backport of 33fc083b0d from master

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