2
0
Эх сурвалжийг харах

Fixes #12108: Limit the draggable area of widgets to their headers

jeremystretch 2 жил өмнө
parent
commit
198c004c1d

+ 1 - 0
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
 

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
netbox/project-static/dist/netbox.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 5 - 0
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

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно