From bdd113c47b1cedc7f6cf774ee27e382c013439a2 Mon Sep 17 00:00:00 2001 From: panbread <93918332+Panniku@users.noreply.github.com> Date: Tue, 18 Feb 2025 19:01:26 +0400 Subject: [PATCH] fix(unreadBadgeCount, bannersEverywhere): some fixes (#157) Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/bannersEverywhere/style.css | 8 +++++++- src/equicordplugins/unreadBadgeCount/index.tsx | 14 +++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/bannersEverywhere/style.css b/src/equicordplugins/bannersEverywhere/style.css index c99e5ca7..f8f052ff 100644 --- a/src/equicordplugins/bannersEverywhere/style.css +++ b/src/equicordplugins/bannersEverywhere/style.css @@ -1,11 +1,17 @@ /* stylelint-disable property-no-vendor-prefix */ .vc-banners-everywhere-memberlist { + position: absolute; + left: 0; + border-radius: var(--radius-sm); opacity: 0.8; -webkit-mask-image: linear-gradient(to right, transparent 20%, #fff); mask-image: linear-gradient(to right, transparent 20%, #fff); object-fit: cover; width: 100%; height: 100%; - position: absolute; cursor: pointer; } + +.vc-banners-everywhere-memberlist ~ div { + z-index: 1; +} diff --git a/src/equicordplugins/unreadBadgeCount/index.tsx b/src/equicordplugins/unreadBadgeCount/index.tsx index e133dff3..05cde5e3 100644 --- a/src/equicordplugins/unreadBadgeCount/index.tsx +++ b/src/equicordplugins/unreadBadgeCount/index.tsx @@ -18,12 +18,13 @@ import { JSX } from "react"; const UserGuildSettingsStore = findStoreLazy("UserGuildSettingsStore"); const JoinedThreadsStore = findStoreLazy("JoinedThreadsStore"); -function NumberBadge({ className, count, width }) { +function NumberBadge({ className, count, width, padding }) { // To whoever used svgs here, // Please. svgs bad and buggy unless used as an icon + // + The css values are directly copied from discord's ping badge return