From ca04b2665c0f9bf0fb86dbae859162ea85b450c2 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:06:56 -0500 Subject: [PATCH] RDB: fix classes --- src/plugins/reviewDB/index.tsx | 7 +++++-- src/plugins/reviewDB/style.css | 21 --------------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx index 1a9b2ef65..1b395f69c 100644 --- a/src/plugins/reviewDB/index.tsx +++ b/src/plugins/reviewDB/index.tsx @@ -25,6 +25,7 @@ import { TooltipContainer } from "@components/TooltipContainer"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; import { Guild, User } from "@vencord/discord-types"; +import { findCssClassesLazy } from "@webpack"; import { Alerts, Clickable, Menu, Parser } from "@webpack/common"; import { Auth, initAuth, updateAuth } from "./auth"; @@ -32,7 +33,9 @@ import { openReviewsModal } from "./components/ReviewModal"; import { NotificationType, ReviewType } from "./entities"; import { getCurrentUserInfo, readNotification } from "./reviewDbApi"; import { settings } from "./settings"; -import { cl, showToast } from "./utils"; +import { showToast } from "./utils"; + +const BannerButtonClasses = findCssClassesLazy("bannerButton"); const guildPopoutPatch: NavContextMenuPatchCallback = (children, { guild }: { guild: Guild, onClose(): void; }) => { if (!guild) return; @@ -148,7 +151,7 @@ export default definePlugin({ openReviewsModal(user.id, user.username, ReviewType.User)} - className={cl("banner-button")} + className={BannerButtonClasses.bannerButton} > diff --git a/src/plugins/reviewDB/style.css b/src/plugins/reviewDB/style.css index 9967b6dce..83fa6cf27 100644 --- a/src/plugins/reviewDB/style.css +++ b/src/plugins/reviewDB/style.css @@ -131,24 +131,3 @@ .vc-rdb-block-modal-unblock { cursor: pointer; } - -.vc-rdb-banner-button { - align-items: center; - background: var(--redesign-button-overlay-alpha-background); - border: 1px solid var(--opacity-white-8); - border-radius: 50%; - box-sizing: border-box; - color: var(--white); - cursor: pointer; - display: flex; - height: var(--custom-button-button-sm-height); - justify-content: center; - transition: background 50ms ease-in; - width: var(--custom-button-button-sm-height); - - &:active, - &:hover { - background: var(--redesign-button-overlay-alpha-pressed-background); - transition: background .15s ease-out - } -} \ No newline at end of file