@coldsmirk/ledger-mantine 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -428,8 +428,11 @@ function useRowReorder({ onRowReorder, labels, viewportRef, getCenterRows, nameR
|
|
|
428
428
|
body.append(rowClone);
|
|
429
429
|
ghostTable.append(colgroup, body);
|
|
430
430
|
element.replaceChildren(ghostTable);
|
|
431
|
-
const
|
|
432
|
-
|
|
431
|
+
const sourceStyle = getComputedStyle(source);
|
|
432
|
+
for (const variable of ["--ledger-body-bg", "--ledger-border-color"]) {
|
|
433
|
+
const value = sourceStyle.getPropertyValue(variable).trim();
|
|
434
|
+
if (value !== "") element.style.setProperty(variable, value);
|
|
435
|
+
}
|
|
433
436
|
const rowRect = source.getBoundingClientRect();
|
|
434
437
|
ghostOrigin.current = {
|
|
435
438
|
x: rowRect.left - ghostPosition.current.x,
|