From 3312069f2ee0d70520c6aac2a462c8fefa6828e9 Mon Sep 17 00:00:00 2001 From: veldakarimi Date: Wed, 24 Jan 2024 09:58:24 +0300 Subject: [PATCH] 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";