From 198c004c1dd47db979d171910d7efff1724229e3 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Fri, 31 Mar 2023 09:26:58 -0400 Subject: [PATCH] Fixes #12108: Limit the draggable area of widgets to their headers --- docs/release-notes/version-3.5.md | 1 + netbox/project-static/dist/netbox.js | Bin 437757 -> 437842 bytes netbox/project-static/dist/netbox.js.map | Bin 401485 -> 401526 bytes netbox/project-static/src/dashboard.ts | 5 +++++ 4 files changed, 6 insertions(+) diff --git a/docs/release-notes/version-3.5.md b/docs/release-notes/version-3.5.md index 35f70ce2a..446cf829f 100644 --- a/docs/release-notes/version-3.5.md +++ b/docs/release-notes/version-3.5.md @@ -70,6 +70,7 @@ Two new webhook trigger events have been introduced: `job_start` and `job_end`. ### Bug Fixes (From Beta1) +* [#12108](https://github.com/netbox-community/netbox/issues/12108) - Limit the draggable area of widgets to their headers * [#12109](https://github.com/netbox-community/netbox/issues/12109) - Fix migration error when replicating more than 100 job results * [#12112](https://github.com/netbox-community/netbox/issues/12112) - Do not link data source URL for local paths diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 1b369c1260aa802261d4c30b2774b795a994b60b..82215659f221d0ed7d21741d635563cac9d04e15 100644 GIT binary patch delta 61 zcmV-D0K)(M+Zxi`8i0fWgaU*Egam{IvF7M2#)Eo?s)Zuecp#>xW#tuYGj diff --git a/netbox/project-static/dist/netbox.js.map b/netbox/project-static/dist/netbox.js.map index e4a641ea79c35ce8a5030be85f4ce41ff45b21a6..b9fb5a27cf556f828d868726d292aff764e985b7 100644 GIT binary patch delta 86 zcmX?mK;qj0iG~)&7N!>F7M2#)Eo{HUbv+%OqjW+Y9m92;9i2mT{2d(wb;^OvAe~@G j$50^OISeA`>*(z_{hv77OXecytm*cStYX_F*?idn+W{KI delta 39 vcmex%K;rBHiG~)&7N!>F7M2#)Eo{HUS$rKmgQlxXu)So=*e)o^mdXwQEkX?t diff --git a/netbox/project-static/src/dashboard.ts b/netbox/project-static/src/dashboard.ts index 6ce10bdab..b5d5da9e3 100644 --- a/netbox/project-static/src/dashboard.ts +++ b/netbox/project-static/src/dashboard.ts @@ -22,6 +22,11 @@ export function initDashboard(): void { // Initialize the grid let grid = GridStack.init({ cellHeight: 100, + draggable: { + handle: '.grid-stack-item-content .card-header', + appendTo: 'body', + scroll: true + } }); // Create a listener for the dashboard save button