Opened 5 years ago

Closed 5 years ago

#31174 closed Bug (invalid)

The inline original text area can not display full.

Reported by: Jian Dai Owned by: nobody
Component: contrib.admin Version: 3.0
Severity: Normal Keywords: form inline original css style
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description (last modified by Jian Dai)

The changeform page that having a inline models, has a bug in the the style.
The style ".inline-group .tabular td.original p" in "form.css", can not display the full text with "height:1.1em".
Browser: Chrome version 79.0.3945.117

I think it should be "height: inherit"

  • models.py
from django.db import models


# Create your models here.
class Parent(models.Model):
    name = models.CharField(max_length=128, blank=True, null=True)


class Children(models.Model):
    name = models.CharField(max_length=128, blank=True, null=True)
    parent = models.ForeignKey(Parent, on_delete=models.CASCADE)

  • admin.py
from django.contrib import admin

from . import models


# Register your models here.

class ChildrenInline(admin.TabularInline):
    model = models.Children


@admin.register(models.Parent)
class ParentAdmin(admin.ModelAdmin):
    inlines = [ChildrenInline, ]

Attachments (2)

截屏2020-01-17上午10.53.23.png (37.4 KB ) - added by Jian Dai 5 years ago.
Screenshot_20200117_093715.png (7.0 KB ) - added by Mariusz Felisiak 5 years ago.

Download all attachments as: .zip

Change History (4)

by Jian Dai, 5 years ago

comment:1 by Jian Dai, 5 years ago

Description: modified (diff)

by Mariusz Felisiak, 5 years ago

comment:2 by Mariusz Felisiak, 5 years ago

Component: Formscontrib.admin
Resolution: invalid
Status: newclosed
Summary: The inline original text area can not display fullThe inline original text area can not display full.

Thanks for this report, however I cannot reproduce it locally (see screenshot) and CSS looks good for me. Changing height shouldn't affect this behavior. This may be a local font issue, it's hard to tell.

Closing per TicketClosingReasons/UseSupportChannels.

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