@kerkhoff-ict/solora 2.1.1 → 2.1.3
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 +11 -4
- package/dist/index.js +2 -2
- package/package.json +1 -2
package/dist/index.css
CHANGED
|
@@ -7,13 +7,20 @@
|
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
transition: background 0.2s, filter 0.2s;
|
|
9
9
|
}
|
|
10
|
-
.btn-rounded {
|
|
11
|
-
|
|
12
|
-
display: flex;
|
|
10
|
+
.btn-rounded-sm {
|
|
11
|
+
display: inline-flex;
|
|
13
12
|
align-items: center;
|
|
14
13
|
justify-content: center;
|
|
15
|
-
|
|
14
|
+
width: 2.2rem;
|
|
15
|
+
height: 2.2rem;
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
padding: 0;
|
|
16
18
|
cursor: pointer;
|
|
19
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
background: var(--color-primary, #0071e3);
|
|
22
|
+
color: var(--color-text-light, #fff);
|
|
23
|
+
transition: background 0.2s, transform 0.2s;
|
|
17
24
|
}
|
|
18
25
|
.btn-sm {
|
|
19
26
|
padding: 0.1875rem 1rem;
|
package/dist/index.js
CHANGED
|
@@ -2067,8 +2067,8 @@ function initContextMenu() {
|
|
|
2067
2067
|
let posY = e.clientY;
|
|
2068
2068
|
const menuWidth = menu.offsetWidth;
|
|
2069
2069
|
const menuHeight = menu.offsetHeight;
|
|
2070
|
-
|
|
2071
|
-
|
|
2070
|
+
posX = Math.max(0, posX);
|
|
2071
|
+
posY = Math.max(0, posY);
|
|
2072
2072
|
menu.style.left = `${posX}px`;
|
|
2073
2073
|
menu.style.top = `${posY}px`;
|
|
2074
2074
|
requestAnimationFrame(() => menu.classList.add("visible"));
|