Opened 5 years ago
Last modified 5 years ago
#31174 closed Bug
The inline original text area can not display full — at Version 1
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, ]
Change History (3)
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 |
---|
Note:
See TracTickets
for help on using tickets.