diff --git a/src/plugins/vencordToolbox/index.tsx b/src/plugins/vencordToolbox/index.tsx index 5f4f78fc1..fb9541968 100644 --- a/src/plugins/vencordToolbox/index.tsx +++ b/src/plugins/vencordToolbox/index.tsx @@ -28,7 +28,7 @@ import type { PropsWithChildren } from "react"; import { renderPopout } from "./menu"; -const HeaderBarIcon = findComponentByCodeLazy(".HEADER_BAR_BADGE_TOP:", '"aria-haspopup":'); +const HeaderBarIcon = findComponentByCodeLazy(".HEADER_BAR_BADGE_BOTTOM,", 'position:"bottom"'); export const settings = definePluginSettings({ showPluginMenu: { @@ -40,7 +40,7 @@ export const settings = definePluginSettings({ function Icon({ isShown }: { isShown: boolean; }) { return ( - + {isShown ? : @@ -49,7 +49,7 @@ function Icon({ isShown }: { isShown: boolean; }) { ); } -function VencordPopoutButton({ buttonClass }: { buttonClass: string; }) { +function VencordPopoutButton() { const buttonRef = useRef(null); const [show, setShow] = useState(false); @@ -66,7 +66,7 @@ function VencordPopoutButton({ buttonClass }: { buttonClass: string; }) { {(_, { isShown }) => ( setShow(v => !v)} tooltip={isShown ? null : "Vencord Toolbox"} icon={() => } @@ -88,18 +88,18 @@ export default definePlugin({ { find: '?"BACK_FORWARD_NAVIGATION":', replacement: { - match: /(?<=trailing:.{0,50})\i\.Fragment,\{(?=.+?className:(\i\.\i))/, - replace: "$self.TrailingWrapper,{className:$1," + match: /(?<=trailing:.{0,50})\i\.Fragment,(?=\{children:\[)/, + replace: "$self.TrailingWrapper," } } ], - TrailingWrapper({ children, className }: PropsWithChildren<{ className: string; }>) { + TrailingWrapper({ children }: PropsWithChildren) { return ( <> {children} - - + + );