mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Add max length to messenger input
This commit is contained in:
parent
95596b6a9a
commit
b519c0471a
@ -307,7 +307,7 @@ export const FriendsMessengerView: FC<{}> = props =>
|
|||||||
<FriendsMessengerThreadView thread={messageThreads[activeThreadIndex]} />
|
<FriendsMessengerThreadView thread={messageThreads[activeThreadIndex]} />
|
||||||
</NitroLayoutFlexColumn>
|
</NitroLayoutFlexColumn>
|
||||||
<NitroLayoutFlex gap={2}>
|
<NitroLayoutFlex gap={2}>
|
||||||
<input type="text" className="form-control form-control-sm" placeholder={LocalizeText('messenger.window.input.default', ['FRIEND_NAME'], [messageThreads[activeThreadIndex].participant.name])} value={messageText} onChange={event => setMessageText(event.target.value)} onKeyDown={onKeyDown} />
|
<input type="text" className="form-control form-control-sm" maxLength={ 255 } placeholder={LocalizeText('messenger.window.input.default', ['FRIEND_NAME'], [messageThreads[activeThreadIndex].participant.name])} value={messageText} onChange={event => setMessageText(event.target.value)} onKeyDown={onKeyDown} />
|
||||||
<NitroLayoutButton variant="success" size="sm" onClick={sendMessage}>
|
<NitroLayoutButton variant="success" size="sm" onClick={sendMessage}>
|
||||||
{LocalizeText('widgets.chatinput.say')}
|
{LocalizeText('widgets.chatinput.say')}
|
||||||
</NitroLayoutButton>
|
</NitroLayoutButton>
|
||||||
|
Loading…
Reference in New Issue
Block a user