ReviewDB: fix input

This commit is contained in:
Vendicated 2025-08-12 02:55:01 +02:00
parent d9e2732a8d
commit 27b2e97e3f
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 5 additions and 4 deletions

View file

@ -29,8 +29,8 @@ import ReviewComponent from "./ReviewComponent";
const Transforms = findByPropsLazy("insertNodes", "textToText"); const Transforms = findByPropsLazy("insertNodes", "textToText");
const Editor = findByPropsLazy("start", "end", "toSlateRange"); const Editor = findByPropsLazy("start", "end", "toSlateRange");
const ChatInputTypes = findByPropsLazy("FORM"); const ChatInputTypes = findByPropsLazy("FORM", "USER_PROFILE");
const InputComponent = findComponentByCodeLazy("disableThemedBackground", "CHANNEL_TEXT_AREA"); const InputComponent = findComponentByCodeLazy("editorClassName", "CHANNEL_TEXT_AREA");
const createChannelRecordFromServer = findByCodeLazy(".GUILD_TEXT])", "fromServer)"); const createChannelRecordFromServer = findByCodeLazy(".GUILD_TEXT])", "fromServer)");
interface UserProps { interface UserProps {
@ -127,7 +127,7 @@ export function ReviewsInputComponent(
) { ) {
const { token } = Auth; const { token } = Auth;
const editorRef = useRef<any>(null); const editorRef = useRef<any>(null);
const inputType = ChatInputTypes.FORM; const inputType = ChatInputTypes.USER_PROFILE_REPLY;
inputType.disableAutoFocus = true; inputType.disableAutoFocus = true;
const channel = createChannelRecordFromServer({ id: "0", type: 1 }); const channel = createChannelRecordFromServer({ id: "0", type: 1 });

View file

@ -8,6 +8,7 @@
} }
.vc-rdb-input { .vc-rdb-input {
padding-left: 12px;
margin-top: 6px; margin-top: 6px;
margin-bottom: 12px; margin-bottom: 12px;
resize: none; resize: none;
@ -132,4 +133,4 @@
.vc-rdb-block-modal-unblock { .vc-rdb-block-modal-unblock {
cursor: pointer; cursor: pointer;
} }