@kerkhoff-ict/solora 2.0.5 → 2.0.7
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.css +0 -4
- package/dist/index.js +0 -32
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -520,10 +520,6 @@
|
|
|
520
520
|
font-weight: 600;
|
|
521
521
|
background: rgba(0, 0, 0, 0.1);
|
|
522
522
|
}
|
|
523
|
-
.dropdown-item:focus {
|
|
524
|
-
outline: 2px solid var(--color-primary, #0071e3);
|
|
525
|
-
outline-offset: 2px;
|
|
526
|
-
}
|
|
527
523
|
.dropdown-item[aria-disabled=true],
|
|
528
524
|
.dropdown-item.placeholder {
|
|
529
525
|
color: rgba(0, 0, 0, 0.4);
|
package/dist/index.js
CHANGED
|
@@ -1777,7 +1777,6 @@ function initCodeblocks() {
|
|
|
1777
1777
|
} else {
|
|
1778
1778
|
pre.innerHTML = import_prismjs.default.highlight(code, import_prismjs.default.languages[lang], lang);
|
|
1779
1779
|
}
|
|
1780
|
-
if (block.classList.contains("draggable")) makeDraggable(block);
|
|
1781
1780
|
if (closeBtn) closeBtn.addEventListener("click", () => {
|
|
1782
1781
|
block.style.transition = "opacity 0.3s ease, transform 0.3s ease";
|
|
1783
1782
|
block.style.opacity = 0;
|
|
@@ -1847,37 +1846,6 @@ function initMaximizeButton(block, maximizeBtn) {
|
|
|
1847
1846
|
}
|
|
1848
1847
|
});
|
|
1849
1848
|
}
|
|
1850
|
-
function makeDraggable(element) {
|
|
1851
|
-
const header = element.querySelector(".pre-top");
|
|
1852
|
-
if (!header) return;
|
|
1853
|
-
let offsetX = 0, offsetY = 0, isDragging = false;
|
|
1854
|
-
header.style.cursor = "move";
|
|
1855
|
-
header.addEventListener("mousedown", onMouseDown);
|
|
1856
|
-
header.querySelectorAll("span, button").forEach((btn) => {
|
|
1857
|
-
btn.addEventListener("mousedown", (e) => e.stopPropagation());
|
|
1858
|
-
});
|
|
1859
|
-
function onMouseDown(e) {
|
|
1860
|
-
isDragging = true;
|
|
1861
|
-
const rect = element.getBoundingClientRect();
|
|
1862
|
-
offsetX = e.clientX - rect.left;
|
|
1863
|
-
offsetY = e.clientY - rect.top;
|
|
1864
|
-
Object.assign(element.style, { width: `${rect.width}px`, position: "absolute", zIndex: 9999 });
|
|
1865
|
-
document.addEventListener("mousemove", onMouseMove);
|
|
1866
|
-
document.addEventListener("mouseup", onMouseUp);
|
|
1867
|
-
}
|
|
1868
|
-
function onMouseMove(e) {
|
|
1869
|
-
if (element.dataset.isFullscreen === "true" || !isDragging) return;
|
|
1870
|
-
const left = e.clientX - offsetX;
|
|
1871
|
-
const top = e.clientY - offsetY;
|
|
1872
|
-
Object.assign(element.style, { left: `${left}px`, top: `${top}px` });
|
|
1873
|
-
element.dataset.currentRect = JSON.stringify({ top, left, width: element.offsetWidth, height: element.offsetHeight });
|
|
1874
|
-
}
|
|
1875
|
-
function onMouseUp() {
|
|
1876
|
-
isDragging = false;
|
|
1877
|
-
document.removeEventListener("mousemove", onMouseMove);
|
|
1878
|
-
document.removeEventListener("mouseup", onMouseUp);
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
1849
|
|
|
1882
1850
|
// src/components/dropdown.js
|
|
1883
1851
|
function initDropdowns() {
|