From 63e73b69ee90a0e5a75350f2f5f7f94a85f5ba3a Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Thu, 22 Jan 2026 20:46:23 -0500 Subject: [PATCH] RDB: remove class find by props --- src/plugins/reviewDB/index.tsx | 8 ++------ src/plugins/reviewDB/style.css | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx index 2091687f2..1a9b2ef65 100644 --- a/src/plugins/reviewDB/index.tsx +++ b/src/plugins/reviewDB/index.tsx @@ -23,10 +23,8 @@ import ErrorBoundary from "@components/ErrorBoundary"; import { NotesIcon, OpenExternalIcon } from "@components/Icons"; import { TooltipContainer } from "@components/TooltipContainer"; import { Devs } from "@utils/constants"; -import { classes } from "@utils/misc"; import definePlugin from "@utils/types"; import { Guild, User } from "@vencord/discord-types"; -import { findByPropsLazy } from "@webpack"; import { Alerts, Clickable, Menu, Parser } from "@webpack/common"; import { Auth, initAuth, updateAuth } from "./auth"; @@ -34,9 +32,7 @@ import { openReviewsModal } from "./components/ReviewModal"; import { NotificationType, ReviewType } from "./entities"; import { getCurrentUserInfo, readNotification } from "./reviewDbApi"; import { settings } from "./settings"; -import { showToast } from "./utils"; - -const BannerButtonClasses = findByPropsLazy("bannerButton"); +import { cl, showToast } from "./utils"; const guildPopoutPatch: NavContextMenuPatchCallback = (children, { guild }: { guild: Guild, onClose(): void; }) => { if (!guild) return; @@ -152,7 +148,7 @@ export default definePlugin({ openReviewsModal(user.id, user.username, ReviewType.User)} - className={classes(BannerButtonClasses.bannerButton)} + className={cl("banner-button")} > diff --git a/src/plugins/reviewDB/style.css b/src/plugins/reviewDB/style.css index e65275f88..9967b6dce 100644 --- a/src/plugins/reviewDB/style.css +++ b/src/plugins/reviewDB/style.css @@ -130,4 +130,25 @@ .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