From 67f167769d98039c43d4ea137d0a08e541803a46 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Sun, 27 Apr 2025 09:46:26 +0200 Subject: [PATCH] Add CSS resets for height and min-height Refs https://github.com/django/djangoproject.com/pull/2041. --- debug_toolbar/static/debug_toolbar/css/toolbar.css | 4 +++- docs/changes.rst | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debug_toolbar/static/debug_toolbar/css/toolbar.css b/debug_toolbar/static/debug_toolbar/css/toolbar.css index e47dcc975..f147bcdff 100644 --- a/debug_toolbar/static/debug_toolbar/css/toolbar.css +++ b/debug_toolbar/static/debug_toolbar/css/toolbar.css @@ -127,8 +127,10 @@ #djDebug button { margin: 0; padding: 0; - min-width: 0; + min-width: auto; width: auto; + min-height: auto; + height: auto; border: 0; outline: 0; font-size: 12px; diff --git a/docs/changes.rst b/docs/changes.rst index e7cdbef0e..8b32c52da 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -17,6 +17,8 @@ Pending templates. * Swapped display order of panel header and close button to prevent style conflicts +* Added CSS for resetting the height of elements too to avoid problems with + global CSS of a website where the toolbar is used. 5.1.0 (2025-03-20) ------------------