From 31056d48bd15e9e6c8490473712875aeaf4825c6 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:22:49 +1100 Subject: config: lock osds spacing --- modules/osds.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') 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; } }); } -- cgit v1.2.3-freya