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 )
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)
Change History (4)
by , 5 years ago
Attachment: | 截屏2020-01-17上午10.53.23.png added |
---|
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
by , 5 years ago
Attachment: | Screenshot_20200117_093715.png added |
---|
comment:2 by , 5 years ago
Component: | Forms → contrib.admin |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Summary: | The inline original text area can not display full → The inline original text area can not display full. |
Note:
See TracTickets
for help on using tickets.
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.