mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
twitter char limit to 160 and added scroll
This commit is contained in:
1 parent
63aea89e2b
commit
1fca1ac200
3 files changed
+8
-2
No files matched your search
@@ -114,7 +114,11 @@ export const AddTweetModal = () => {
|
||||
_handleClose();
|
||||
};
|
||||
|
||||
const handleMessageChange = (e) => setMessage(e.target.value);
|
||||
const handleMessageChange = (e: StandardInputProps['onChange']) => {
|
||||
const message = e.target.value;
|
||||
if (message.length > config.twitter.characterLimit) return;
|
||||
setMessage(message)
|
||||
}
|
||||
|
||||
const addImage = () => {
|
||||
// strip any whitespace from the link in case the user
|
||||
|
||||
@@ -9,6 +9,8 @@ const useStyles = makeStyles((theme) => ({
|
||||
flex: '1 1 100%',
|
||||
padding: '10px 15px',
|
||||
marginTop: '15px',
|
||||
overflowY: 'auto',
|
||||
maxHeight: '300px',
|
||||
},
|
||||
textFieldInput: {
|
||||
fontSize: '22px',
|
||||
|
||||
Reference in new issue
Block a user