Opened 5 years ago

Closed 5 years ago

Last modified 2 years ago

#14868 closed (fixed)

admin: prevent long text from overflowing recent actions box

Reported by: acdha Owned by: acdha
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 acdha 5 years ago.
Example of overflow (IE8)
Screen shot 2010-12-08 at 11.33.59 AM.png (9.9 KB) - added by acdha 5 years ago.
Example with the change (IE8)
admin-recent-actions-text-overflow.patch (1.1 KB) - added by acdha 5 years ago.
Git-generated patch

Download all attachments as: .zip

Change History (10)

Changed 5 years ago by acdha

Example of overflow (IE8)

Changed 5 years ago by acdha

Example with the change (IE8)

Changed 5 years ago by acdha

Git-generated patch

comment:1 Changed 5 years ago by acdha

  • Keywords easy-pickings added; admin removed
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to acdha
  • Patch needs improvement unset
  • Status changed from new to assigned

comment:2 Changed 5 years ago by jezdez

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 5 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 5 years ago by jezdez

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

(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 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

comment:6 Changed 2 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 2 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