Skip to content

Commit 22df01c

Browse files
authored
The djdt handle shouldn't be stuck at the top of the browser window initially #1853 (#1871)
* changing the default position of the toolbar to the top half instead of the top * updated the change to the changes.rst file
1 parent 77aa47a commit 22df01c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const djdt = {
226226
const handle = document.getElementById("djDebugToolbarHandle");
227227
// set handle position
228228
const handleTop = Math.min(
229-
localStorage.getItem("djdt.top") || 0,
229+
localStorage.getItem("djdt.top") || 265,
230230
window.innerHeight - handle.offsetWidth
231231
);
232232
handle.style.top = handleTop + "px";

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Pending
1717
``django.contrib.admindocs.utils.get_view_name``.
1818
* Switched from black to the `ruff formatter
1919
<https://astral.sh/blog/the-ruff-formatter>`__.
20+
* Changed the default position of the toolbar from top to the upper top
21+
position.
2022

2123
4.2.0 (2023-08-10)
2224
------------------

0 commit comments

Comments
 (0)