Skip to content

Commit

Permalink
fixing the position of the toolbar button to the upper top
Browse files Browse the repository at this point in the history
  • Loading branch information
VeldaKiara committed Jan 24, 2024
1 parent 2edf71e commit 3312069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debug_toolbar/static/debug_toolbar/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion debug_toolbar/static/debug_toolbar/js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 3312069

Please sign in to comment.