From adcf72599850cc414070e29724a9a612fd74f71f Mon Sep 17 00:00:00 2001 From: BlueishTint Date: Wed, 18 Feb 2026 13:26:54 -0800 Subject: [PATCH] ghosted: Fix spacing issues (#796) * Fix styles * Make indicator not show if there are no ghosted messages This makes the plugin only be intrusive when you want it to be intrusive. * Fix centering * Stop 0 from being output --------- Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/ghosted/index.tsx | 2 +- src/equicordplugins/ghosted/styles.css | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/ghosted/index.tsx b/src/equicordplugins/ghosted/index.tsx index 954c9b624..845a34f6b 100644 --- a/src/equicordplugins/ghosted/index.tsx +++ b/src/equicordplugins/ghosted/index.tsx @@ -100,7 +100,7 @@ function BooIndicator() { return ( <> - {settings.store.showIndicator && getGhostedChannels().length && ( + {settings.store.showIndicator && getGhostedChannels().length > 0 && (
{({ onMouseEnter, onMouseLeave }) => ( diff --git a/src/equicordplugins/ghosted/styles.css b/src/equicordplugins/ghosted/styles.css index fb373f8fa..bb5d05bbf 100644 --- a/src/equicordplugins/ghosted/styles.css +++ b/src/equicordplugins/ghosted/styles.css @@ -10,7 +10,8 @@ background-color: var(--background-primary); height: 30px; width: 48px; - margin-left: 8px; + margin-left: auto; + margin-right: auto; color: var(--text-default); fill: var(--text-default); } @@ -153,4 +154,4 @@ .vc-boo-modal-text { color: var(--text-muted); -} \ No newline at end of file +}