RDB: fix classes
This commit is contained in:
parent
f769ccfc0a
commit
ca04b2665c
2 changed files with 5 additions and 23 deletions
|
|
@ -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({
|
|||
<TooltipContainer text="View Reviews">
|
||||
<Clickable
|
||||
onClick={() => openReviewsModal(user.id, user.username, ReviewType.User)}
|
||||
className={cl("banner-button")}
|
||||
className={BannerButtonClasses.bannerButton}
|
||||
>
|
||||
<NotesIcon height={16} width={16} />
|
||||
</Clickable>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue