Opened 4 weeks ago

Last modified 12 days ago

#36554 assigned Bug

In TabularInline, the text is truncated when the object's __str__ is too long. — at Initial Version

Reported by: Antoliny Owned by:
Component: contrib.admin Version: 5.2
Severity: Normal Keywords: inline
Cc: Antoliny Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

In TabularInline, there is an issue where the text gets cut off when the object's str is long.

No image "Screenshot 2025-08-15 at 11.56.30 AM.png" attached to Ticket #36554

The above image is fine because the screen is wide, but on a mobile screen, the text gets cut off as shown below.


Recently, the font size of TabularInline was made the same as StackedInline https://github.com/django/django/commit/65377325855ab6faa7ac487e336e9902c6268c96, resulting in a larger font than before.

As a result, the likelihood of this issue occurring has increased, and as seen in the above image, links rendered via show_change_link are also cut off, preventing the use of the features provided by default.

Change History (1)

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