Skip to content

Commit

Permalink
The djdt handle shouldn't be stuck at the top of the browser window i…
Browse files Browse the repository at this point in the history
…nitially #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
VeldaKiara authored Jan 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 77aa47a commit 22df01c
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/static/debug_toolbar/js/toolbar.js
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 2 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
@@ -17,6 +17,8 @@ Pending
``django.contrib.admindocs.utils.get_view_name``.
* Switched from black to the `ruff formatter
<https://astral.sh/blog/the-ruff-formatter>`__.
* Changed the default position of the toolbar from top to the upper top
position.

4.2.0 (2023-08-10)
------------------

0 comments on commit 22df01c

Please sign in to comment.