From 27b2e97e3fe8bbac8dffbddcff62743f73457d9d Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 12 Aug 2025 02:55:01 +0200 Subject: [PATCH] ReviewDB: fix input --- src/plugins/reviewDB/components/ReviewsView.tsx | 6 +++--- src/plugins/reviewDB/style.css | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/reviewDB/components/ReviewsView.tsx b/src/plugins/reviewDB/components/ReviewsView.tsx index 7a7d8d02..42ab0938 100644 --- a/src/plugins/reviewDB/components/ReviewsView.tsx +++ b/src/plugins/reviewDB/components/ReviewsView.tsx @@ -29,8 +29,8 @@ import ReviewComponent from "./ReviewComponent"; const Transforms = findByPropsLazy("insertNodes", "textToText"); const Editor = findByPropsLazy("start", "end", "toSlateRange"); -const ChatInputTypes = findByPropsLazy("FORM"); -const InputComponent = findComponentByCodeLazy("disableThemedBackground", "CHANNEL_TEXT_AREA"); +const ChatInputTypes = findByPropsLazy("FORM", "USER_PROFILE"); +const InputComponent = findComponentByCodeLazy("editorClassName", "CHANNEL_TEXT_AREA"); const createChannelRecordFromServer = findByCodeLazy(".GUILD_TEXT])", "fromServer)"); interface UserProps { @@ -127,7 +127,7 @@ export function ReviewsInputComponent( ) { const { token } = Auth; const editorRef = useRef(null); - const inputType = ChatInputTypes.FORM; + const inputType = ChatInputTypes.USER_PROFILE_REPLY; inputType.disableAutoFocus = true; const channel = createChannelRecordFromServer({ id: "0", type: 1 }); diff --git a/src/plugins/reviewDB/style.css b/src/plugins/reviewDB/style.css index 47ccd091..bf2fed30 100644 --- a/src/plugins/reviewDB/style.css +++ b/src/plugins/reviewDB/style.css @@ -8,6 +8,7 @@ } .vc-rdb-input { + padding-left: 12px; margin-top: 6px; margin-bottom: 12px; resize: none; @@ -132,4 +133,4 @@ .vc-rdb-block-modal-unblock { cursor: pointer; -} +} \ No newline at end of file