diff --git a/public/b-o/css/app.css b/public/b-o/css/app.css index 478de7ad..c21e6561 100644 --- a/public/b-o/css/app.css +++ b/public/b-o/css/app.css @@ -10105,4 +10105,31 @@ body { .form-control-dark:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); +} + +.smooth-dnd-container { + margin: 1rem; +} +.smooth-dnd-container.pool { + border: 1px solid #ccc; +} +.smooth-dnd-container.pool .card { + cursor: -webkit-grab; + cursor: grab; + max-height: 15rem; + max-width: 15rem; + overflow-y: auto; +} +.smooth-dnd-container.selection { + border: 1px solid #ccc; + min-height: 10rem; + min-width: 10rem; +} +.smooth-dnd-container.selection .card { + cursor: -webkit-grab; + cursor: grab; + max-height: 15rem; + max-width: 15rem; + overflow: scroll; + overflow-y: auto; } \ No newline at end of file diff --git a/public/b-o/js/app.js b/public/b-o/js/app.js index d2e62db3..990d3c7a 100644 --- a/public/b-o/js/app.js +++ b/public/b-o/js/app.js @@ -2291,6 +2291,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len // // // +// +// /* harmony default export */ __webpack_exports__["default"] = ({ name: 'Groups', @@ -6864,7 +6866,7 @@ exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loa // module -exports.push([module.i, "\n.groups[data-v-4aff55b4] {\n /*display: flex;*/\n justify-content: stretch;\n margin-top: 50px;\n margin-right: 50px;\n}\n.ghost[data-v-4aff55b4] {\n opacity: 0.8;\n /*background: #c8ebfb;*/\n background: #f00;\n}\n.group[data-v-4aff55b4] {\n margin-left: 50px;\n flex: 1;\n}\n", ""]); +exports.push([module.i, "\n.groups[data-v-4aff55b4] {\n /*display: flex;\n justify-content: stretch;\n margin-top: 50px;\n margin-right: 50px;*/\n}\n.ghost[data-v-4aff55b4] {\n opacity: 0.8;\n /*background: #c8ebfb;*/\n background: #f00;\n}\n.group[data-v-4aff55b4] {\n /*margin-left: 50px;\n flex: 1;*/\n}\n", ""]); // exports @@ -40285,6 +40287,7 @@ var render = function() { { attrs: { "group-name": "1", + tag: { value: "div", props: { class: "pool" } }, "get-child-payload": _vm.getChildPayload1, "drag-class": "ghost", orientation: "horizontal" @@ -40318,6 +40321,7 @@ var render = function() { { attrs: { "group-name": "1", + tag: { value: "div", props: { class: "selection" } }, "get-child-payload": _vm.getChildPayload2, "drag-class": "ghost", "drop-placeholder": _vm.dropOptions, diff --git a/resources/js/components/ProductsCardsDnd.vue b/resources/js/components/ProductsCardsDnd.vue index 9c567835..e4dd1818 100644 --- a/resources/js/components/ProductsCardsDnd.vue +++ b/resources/js/components/ProductsCardsDnd.vue @@ -2,6 +2,7 @@