From daabb102c059119504dc6c78a2e2dc62c9d572b8 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 15 Apr 2020 14:27:39 +0100 Subject: [PATCH] Fixed #31470 -- Fixed fieldset admin CSS to prevent overflowing
 elements.

Co-Authored-By: Mariusz Felisiak 
---
 django/contrib/admin/static/admin/css/base.css | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/django/contrib/admin/static/admin/css/base.css b/django/contrib/admin/static/admin/css/base.css
index 913de658dd..a972fc68f5 100644
--- a/django/contrib/admin/static/admin/css/base.css
+++ b/django/contrib/admin/static/admin/css/base.css
@@ -124,6 +124,7 @@ form {
 
 fieldset {
     margin: 0;
+    min-width: 0;
     padding: 0;
     border: none;
     border-top: 1px solid #eee;
@@ -141,6 +142,7 @@ code, pre {
     font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
     color: #666;
     font-size: 12px;
+    overflow-x: auto;
 }
 
 pre.literal-block {