From 5b2b9697b893dd952ce30a8fa489db681c8941af Mon Sep 17 00:00:00 2001 From: veldakarimi Date: Tue, 23 Jan 2024 14:01:18 +0300 Subject: [PATCH 1/3] changing the default position of the toolbar to the top half instead of the top --- debug_toolbar/static/debug_toolbar/css/toolbar.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_toolbar/static/debug_toolbar/css/toolbar.css b/debug_toolbar/static/debug_toolbar/css/toolbar.css index a35286a1f..6d6b7b6f7 100644 --- a/debug_toolbar/static/debug_toolbar/css/toolbar.css +++ b/debug_toolbar/static/debug_toolbar/css/toolbar.css @@ -220,7 +220,7 @@ background-color: #fff; border: 1px solid #111; border-bottom: 0; - top: 0; + top: 268px; right: 0; z-index: 100000000; opacity: 0.75; From 2edf71e5fd725fd72470dd03037213ccea73106c Mon Sep 17 00:00:00 2001 From: veldakarimi Date: Tue, 23 Jan 2024 14:19:22 +0300 Subject: [PATCH 2/3] updated the change to the changes.rst file --- docs/changes.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/changes.rst b/docs/changes.rst index 15c380ddd..82185d756 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -17,6 +17,8 @@ Pending ``django.contrib.admindocs.utils.get_view_name``. * Switched from black to the `ruff formatter `__. +* Changed the default position of the toolbar from top to the upper top + position. 4.2.0 (2023-08-10) ------------------ From 3312069f2ee0d70520c6aac2a462c8fefa6828e9 Mon Sep 17 00:00:00 2001 From: veldakarimi Date: Wed, 24 Jan 2024 09:58:24 +0300 Subject: [PATCH 3/3] fixing the position of the toolbar button to the upper top --- debug_toolbar/static/debug_toolbar/css/toolbar.css | 2 +- debug_toolbar/static/debug_toolbar/js/toolbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debug_toolbar/static/debug_toolbar/css/toolbar.css b/debug_toolbar/static/debug_toolbar/css/toolbar.css index 6d6b7b6f7..a35286a1f 100644 --- a/debug_toolbar/static/debug_toolbar/css/toolbar.css +++ b/debug_toolbar/static/debug_toolbar/css/toolbar.css @@ -220,7 +220,7 @@ background-color: #fff; border: 1px solid #111; border-bottom: 0; - top: 268px; + top: 0; right: 0; z-index: 100000000; opacity: 0.75; diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index 9546ef27e..6648fb52b 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -226,7 +226,7 @@ const djdt = { const handle = document.getElementById("djDebugToolbarHandle"); // set handle position const handleTop = Math.min( - localStorage.getItem("djdt.top") || 0, + localStorage.getItem("djdt.top") || 265, window.innerHeight - handle.offsetWidth ); handle.style.top = handleTop + "px";