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 Version 2

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 (last modified by Antoliny)

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


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 (4)

comment:1 by Antoliny, 4 weeks ago

Component: contrib.admindocs → contrib.admin

comment:2 by Antoliny, 4 weeks ago

Description: modified (diff)

by Antoliny, 4 weeks ago

Attachment: tabular_object_str.png added
Note: See TracTickets for help on using tickets.
Back to Top