File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed
src/client/components/ChatV2 Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export const ChatBox = ({
36
36
handleContinue,
37
37
handleSubmit,
38
38
handleReset,
39
+ isMobile,
39
40
} : {
40
41
disabled : boolean
41
42
currentModel : string
@@ -56,6 +57,7 @@ export const ChatBox = ({
56
57
handleContinue : ( message : string ) => void
57
58
handleSubmit : ( message : string ) => void
58
59
handleReset : ( ) => void
60
+ isMobile : boolean
59
61
} ) => {
60
62
const { courseId } = useParams ( )
61
63
const isEmbedded = useIsEmbedded ( )
@@ -271,19 +273,21 @@ export const ChatBox = ({
271
273
</ Tooltip >
272
274
</ Box >
273
275
274
- < Typography
275
- sx = { {
276
- display : { sm : 'none' , md : 'block' } ,
277
- ml : 'auto' ,
278
- opacity : acuallyDisabled ? 0 : 1 ,
279
- transition : 'opacity 0.2s ease-in-out' ,
280
- fontSize : '14px' ,
281
- } }
282
- variant = "body1"
283
- color = "textSecondary"
284
- >
285
- { user ?. preferences ?. sendShortcutMode === 'enter' ? < ShiftEnterForNewline t = { t } /> : < ShiftEnterToSend t = { t } /> }
286
- </ Typography >
276
+ { ! isMobile && (
277
+ < Typography
278
+ sx = { {
279
+ display : { sm : 'none' , md : 'block' } ,
280
+ ml : 'auto' ,
281
+ opacity : acuallyDisabled ? 0 : 1 ,
282
+ transition : 'opacity 0.2s ease-in-out' ,
283
+ fontSize : '14px' ,
284
+ } }
285
+ variant = "body1"
286
+ color = "textSecondary"
287
+ >
288
+ { user ?. preferences ?. sendShortcutMode === 'enter' ? < ShiftEnterForNewline t = { t } /> : < ShiftEnterToSend t = { t } /> }
289
+ </ Typography >
290
+ ) }
287
291
288
292
{ ! isEmbedded && (
289
293
< Tooltip
Original file line number Diff line number Diff line change @@ -514,6 +514,7 @@ export const ChatV2 = () => {
514
514
handleSubmit ( newMessage , false )
515
515
} }
516
516
handleReset = { handleReset }
517
+ isMobile = { isMobile }
517
518
/>
518
519
</ Box >
519
520
</ Box >
You can’t perform that action at this time.
0 commit comments