Skip to content

Commit

Permalink
Merge c2b99ec into 72ad34e
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong authored Aug 5, 2024
2 parents 72ad34e + c2b99ec commit 794b731
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion frontend/views/containers/chatroom/SendArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
:disabled='loading'
:placeholder='L("Write your message...")'
:style='textareaStyles'
:maxlength='config.messageMaxChar'
@blur='textAreaBlur'
@keydown.enter.exact.prevent='handleKeyDownEnter'
@keydown.tab.exact='handleKeyDownTab'
Expand Down Expand Up @@ -273,7 +274,8 @@ import { makeMentionFromUsername, makeChannelMention } from '@model/contracts/sh
import {
CHATROOM_PRIVACY_LEVEL,
CHATROOM_MEMBER_MENTION_SPECIAL_CHAR,
CHATROOM_CHANNEL_MENTION_SPECIAL_CHAR
CHATROOM_CHANNEL_MENTION_SPECIAL_CHAR,
CHATROOM_MAX_MESSAGE_LEN
} from '@model/contracts/shared/constants.js'
import { CHAT_ATTACHMENT_SIZE_LIMIT } from '~/frontend/utils/constants.js'
import { OPEN_MODAL, CHATROOM_USER_TYPING, CHATROOM_USER_STOP_TYPING } from '@utils/events.js'
Expand Down Expand Up @@ -351,6 +353,9 @@ export default ({
staleObjectURLs: [],
typingUsers: []
},
config: {
messageMaxChar: CHATROOM_MAX_MESSAGE_LEN
},
typingUserTimeoutIds: {},
throttledEmitUserTypingEvent: throttle(this.emitUserTypingEvent, 500)
}
Expand Down Expand Up @@ -943,6 +948,12 @@ export default ({
background-color: transparent;
border: none;
padding: 0.5rem;
max-height: 9rem;
overflow-y: auto;
@include tablet {
max-height: 12.25rem;
}
&::-webkit-scrollbar {
display: none;
Expand Down

0 comments on commit 794b731

Please sign in to comment.