summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.ts1
-rw-r--r--modules/osds.tsx4
2 files changed, 4 insertions, 1 deletions
diff --git a/config.ts b/config.ts
index 70166b2..6845c5f 100644
--- a/config.ts
+++ b/config.ts
@@ -37,6 +37,7 @@ export const osds = {
showValue: true,
},
lock: {
+ spacing: 5,
caps: {
hideDelay: 1000,
},
diff --git a/modules/osds.tsx b/modules/osds.tsx
index afd71db..b6e1333 100644
--- a/modules/osds.tsx
+++ b/modules/osds.tsx
@@ -294,7 +294,9 @@ class LockOsd extends Widget.Window {
if (window !== this && window instanceof LockOsd) {
const child = this.get_child();
if (!child) return;
- this[right ? "marginLeft" : "marginRight"] = window.visible ? child.get_preferred_width()[1] + 5 : 0;
+ this[right ? "marginLeft" : "marginRight"] = window.visible
+ ? child.get_preferred_width()[1] + config.lock.spacing
+ : 0;
}
});
}