Small tweaks for css & patch fix for platformspoofer

This commit is contained in:
thororen1234 2026-05-19 16:22:01 -04:00
parent 3f52950b39
commit eed44d3842
No known key found for this signature in database
6 changed files with 17 additions and 20 deletions

View file

@ -50,11 +50,6 @@
0 2px 6px rgb(0 0 0 / 35%);
}
div:has(.vc-author-modal-root) > [class*="actionBar"] {
padding: 8px 16px;
min-height: unset;
}
.vc-author-modal-links {
display: flex;
gap: 4px;
@ -67,4 +62,4 @@ div:has(.vc-author-modal-root) > [class*="actionBar"] {
display: grid;
gap: 0.5em;
margin-top: 0.75em;
}
}

View file

@ -58,10 +58,6 @@
padding-bottom: 24px;
}
div:has(.vc-settings-modal-content) [class*="bodySpacerTop"] {
display: none;
}
.vc-plugin-modal-info {
display: flex;
gap: 1em;
@ -84,4 +80,4 @@ div:has(.vc-settings-modal-content) [class*="bodySpacerTop"] {
justify-content: center;
padding: 6px 12px;
color: var(--text-default);
}
}

View file

@ -223,6 +223,16 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
</div>
</section>
{!!plugin.settingsAboutComponent && (
<div className={Margins.top16}>
<section>
<ErrorBoundary message="An error occurred while rendering this plugin's custom Info Component">
<plugin.settingsAboutComponent />
</ErrorBoundary>
</section>
</div>
)}
<section>
<BaseText size="lg" weight="semibold" color="text-strong" className={classes(Margins.top16, Margins.bottom8)}>Settings</BaseText>
{renderSettings()}

View file

@ -5,9 +5,12 @@
*/
import { findGroupChildrenByChildId, NavContextMenuPatchCallback } from "@api/ContextMenu";
import { isPluginEnabled } from "@api/PluginManager";
import { definePluginSettings } from "@api/Settings";
import ErrorBoundary from "@components/ErrorBoundary";
import { EyeIcon } from "@components/Icons";
import pinDms from "@plugins/pinDms";
import { isPinned } from "@plugins/pinDms/data";
import { EquicordDevs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";
import { Channel, Message } from "@vencord/discord-types";
@ -65,6 +68,7 @@ const messageCtxPatch: NavContextMenuPatchCallback = (children, { message }: { m
const userCtxPatch: NavContextMenuPatchCallback = (children, { channel }: UserContextProps) => {
if (!channel?.isDM()) return;
if (isPluginEnabled(pinDms.name) && isPinned(channel.id)) return;
const group = findGroupChildrenByChildId("close-dm", children);
if (!group) return;

View file

@ -102,8 +102,4 @@
.vc-updater-modal-content {
padding: 1rem 2rem;
}
header:has(.vc-msg-logger-enhanced-modal-tab-bar) [class*="headerTrailing_"] {
margin-top: 0;
}

View file

@ -78,11 +78,7 @@ export default definePlugin({
find: '"2025-01-virtual-currency-rollout"',
replacement: [
{
match: /(?<=\}\),)(\i)/,
replace: "$1=e=>({enabled:true}),_equicord_$1"
},
{
match: /(?<=\.getConfig\(\i\)\.enabled\},)(\i)/,
match: /(?<=\}\),)(\i)/g,
replace: "$1=e=>({enabled:true}),_equicord_$1"
}
]