Opened 5 years ago
Closed 5 years ago
#31470 closed Cleanup/optimization (fixed)
Overflow not respected when using `<pre>` tag in `<fieldset>` in the admin site.
Reported by: | Nick Pope | Owned by: | Nick Pope |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | admin, fieldset, pre, overflow |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | yes |
Description
When using the <pre>
tag to render a read-only block of code/markup with syntax highlighting in a <fieldset>
, overflow is not respected and the <pre>
forces the <fieldset>
to be wider.
This can be resolved by setting min-width: 0
on fieldset
in CSS.
Attachments (2)
Change History (6)
by , 5 years ago
Attachment: | without-fix.png added |
---|
by , 5 years ago
Attachment: | with-fix.png added |
---|
comment:1 by , 5 years ago
Has patch: | set |
---|
comment:2 by , 5 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Uncategorized → Cleanup/optimization |
Thanks, I reproduced this issue.
comment:3 by , 5 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR