1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

formatting + readme

This commit is contained in:
newwares 2024-05-15 16:32:42 -04:00
parent e88e0408dc
commit daf94fd99c
No known key found for this signature in database
GPG key ID: 07032940362D08BB
4 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,5 @@
# FindReply
Lets you jump to the replies to a message. Makes it easier to follow past conversations/Q&A's.
![](https://github.com/Vendicated/Vencord/assets/45801973/33f28cb1-349d-41ff-83e7-c265c8d3b0e2)

View file

@ -56,7 +56,7 @@ export default function ReplyNavigator({ replies }: { replies: Message[]; }) {
totalCount={replies.length} totalCount={replies.length}
onPageChange={processPageChange} onPageChange={processPageChange}
/> />
<ModalCloseButton className={"vc-findreply-close"} onClick={() => setVisible(false)}/> <ModalCloseButton className={"vc-findreply-close"} onClick={() => setVisible(false)} />
</div> </div>
</ErrorBoundary> </ErrorBoundary>
); );

View file

@ -33,7 +33,7 @@ export const jumper: any = findByPropsLazy("jumpToMessage");
const FindReplyIcon = () => { const FindReplyIcon = () => {
return <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" width="18" height="18"> return <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" width="18" height="18">
<path <path
d="M 7 3 L 7 11 C 7 11 7 12 6 12 L 5 12 C 4 12 4 12 4.983 13.115 L 8.164 17.036 C 9 18 9 18 9.844 17.018 L 12.991 13.277 C 14 12 14 12 13.006 11.985 L 12 12 C 12 12 11 12 11 11 L 11 3 C 11 2 11 2 10 2 L 8 2 C 7 2 7 2 7 3"/> d="M 7 3 L 7 11 C 7 11 7 12 6 12 L 5 12 C 4 12 4 12 4.983 13.115 L 8.164 17.036 C 9 18 9 18 9.844 17.018 L 12.991 13.277 C 14 12 14 12 13.006 11.985 L 12 12 C 12 12 11 12 11 11 L 11 3 C 11 2 11 2 10 2 L 8 2 C 7 2 7 2 7 3" />
</svg>; </svg>;
}; };
let root: Root | null = null; let root: Root | null = null;
@ -103,7 +103,7 @@ export default definePlugin({
document.querySelector("[class^=base_]")!.appendChild(element); document.querySelector("[class^=base_]")!.appendChild(element);
root = ReactDOM.createRoot(element); root = ReactDOM.createRoot(element);
} }
root!.render(<ReplyNavigator replies={replies}/>); root!.render(<ReplyNavigator replies={replies} />);
} }
} else { } else {
Toasts.show({ Toasts.show({

View file

@ -5,4 +5,4 @@
.vc-findreply-close { .vc-findreply-close {
align-items: inherit !important; align-items: inherit !important;
line-height: 0 !important; line-height: 0 !important;
} }