diff --git a/src/equicordplugins/_api/profileSections.ts b/src/equicordplugins/_api/profileSections.ts index aeddbb285..b63c787e5 100644 --- a/src/equicordplugins/_api/profileSections.ts +++ b/src/equicordplugins/_api/profileSections.ts @@ -14,9 +14,9 @@ export default definePlugin({ patches: [ // dm user sidebar { - find: "#{intl::PROVISIONAL_ACCOUNT}),headingIcon:", + find: ".SIDEBAR,disableToolbar:", replacement: { - match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)}\)}\))/, + match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)\}\)\}\))(?=.{0,200}#{intl::USER_PROFILE_WISHLIST})/, replace: "$1,Vencord.Api.ProfileSections.renderProfileSections({userId:$2,isSideBar:true})", } }, diff --git a/src/plugins/characterCounter/index.tsx b/src/plugins/characterCounter/index.tsx index 6bff79c50..bd4beb922 100644 --- a/src/plugins/characterCounter/index.tsx +++ b/src/plugins/characterCounter/index.tsx @@ -62,8 +62,6 @@ export default definePlugin({ useEffect(() => { const listener = () => { - if (!editorRef?.current) return setSelectedCount(0); - setSelectedCount(document.getSelection()?.toString()?.length ?? 0); }; diff --git a/src/plugins/characterCounter/style.css b/src/plugins/characterCounter/style.css index 87f7d775a..fc6d873dc 100644 --- a/src/plugins/characterCounter/style.css +++ b/src/plugins/characterCounter/style.css @@ -15,5 +15,5 @@ } .vc-charCounter-selected { - color: #4285F4 + color: var(--vc-char-count-selected-color, --brand-500); } \ No newline at end of file