@@ -87,7 +87,7 @@ export default class ContentPanelElements {
87
87
const isPdfSupported = true ;
88
88
// Upload button should be visible only if Enable integrations is turned on in web part settings.
89
89
return props . functions && ( isVisionSupported || isPdfSupported ) ? (
90
- < TooltipHost content = { strings . TextUploadFiles } >
90
+ < >
91
91
{ getSimpleDialog ( strings . TextUpload , strings . TextUploadFiles , showUploadDialog , setShowUploadDialog , [
92
92
< UploadFiles
93
93
setImageUrls = { isVisionSupported ? setImageUrls : undefined }
@@ -96,12 +96,12 @@ export default class ContentPanelElements {
96
96
/> ,
97
97
] ) }
98
98
< span className = { [ styles . fileUploadIcon , imageUrls ?. length > 0 ? styles . selected : undefined ] . join ( ' ' ) . trim ( ) } >
99
- < FontIcon iconName = "SkypeCircleArrow " onClick = { ( ) => setShowUploadDialog ( true ) } />
99
+ < FontIcon iconName = "Attach " onClick = { ( ) => setShowUploadDialog ( true ) } title = { strings . TextUploadFiles } />
100
100
< span className = { [ styles . fileCounter , props . promptAtBottom ? styles . promptAtBottom : undefined ] . join ( ' ' ) . trim ( ) } >
101
101
{ imageUrls ?. length ? `(${ imageUrls ?. length } )` : pdfFileContent ? `(${ Object . keys ( pdfFileContent ) . length } )` : '' }
102
102
</ span >
103
103
</ span >
104
- </ TooltipHost >
104
+ </ >
105
105
) : null ;
106
106
}
107
107
@@ -145,7 +145,6 @@ export default class ContentPanelElements {
145
145
signalReload : boolean ,
146
146
isCustomPanelOpen : boolean ,
147
147
isStreamProgress : boolean ,
148
- fileUpload : JSX . Element ,
149
148
setIsStreamProgress : ( state : boolean ) => void ,
150
149
setSignalReload : ( state : boolean ) => void ,
151
150
setModel : ( newModel : string ) => void
@@ -186,7 +185,6 @@ export default class ContentPanelElements {
186
185
) ;
187
186
}
188
187
) }
189
- { fileUpload }
190
188
</ div >
191
189
) ;
192
190
}
@@ -232,7 +230,8 @@ export default class ContentPanelElements {
232
230
resizePrompt : ( e : any ) => void ,
233
231
setPrompt : ( text : string ) => void ,
234
232
submitPayload : ( ) => void ,
235
- panelLanguageModels : JSX . Element
233
+ panelLanguageModels : JSX . Element ,
234
+ fileUpload : JSX . Element
236
235
) : JSX . Element {
237
236
const props = this . props ;
238
237
@@ -260,6 +259,8 @@ export default class ContentPanelElements {
260
259
} }
261
260
/>
262
261
) : null }
262
+ { fileUpload }
263
+ { props . voiceInput ? < VoiceInput setText = { setPrompt } shortLeftMargin = { ! props . functions } /> : null }
263
264
< textarea
264
265
ref = { refPromptArea }
265
266
placeholder = { strings . TextSendMessage }
@@ -277,9 +278,15 @@ export default class ContentPanelElements {
277
278
disabled = {
278
279
isProgress || isStreamProgress || ( chatHistoryParams . maxContentLengthExceeded && ! props . unlimitedHistoryLength )
279
280
}
281
+ className = {
282
+ ! props . functions && ! props . voiceInput
283
+ ? styles . noLeftMargin
284
+ : ! ( props . functions && props . voiceInput )
285
+ ? styles . shortLeftMargin
286
+ : undefined
287
+ }
280
288
/>
281
289
{ ( ! chatHistoryParams . maxContentLengthExceeded || props . unlimitedHistoryLength ) && submitButton }
282
- { props . voiceInput ? < VoiceInput setText = { setPrompt } /> : null }
283
290
</ div >
284
291
< div className = { styles . requestCharsCount } >
285
292
{ ! chatHistoryParams . maxContentLengthExceeded || props . unlimitedHistoryLength
0 commit comments