u
This commit is contained in:
@@ -893,27 +893,25 @@ export default class ChatDrawer extends PureComponent {
|
||||
)}
|
||||
|
||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, ml: 1, flexShrink: 0 }}>
|
||||
<Tooltip title={isVfsOpen ? 'Dateien schließen' : 'Dateien parallel öffnen'}>
|
||||
<IconButton
|
||||
size="small"
|
||||
onClick={() => vfsAutomat.actions.toggleVfs()}
|
||||
aria-label="Dateien"
|
||||
sx={{
|
||||
p: 0.5,
|
||||
color: isVfsOpen ? 'primary.main' : 'text.secondary',
|
||||
bgcolor: isVfsOpen ? 'action.selected' : 'transparent',
|
||||
borderRadius: 1.5,
|
||||
border: '1px solid',
|
||||
borderColor: isVfsOpen ? 'primary.main' : 'transparent',
|
||||
'&:hover': {
|
||||
color: 'primary.main',
|
||||
bgcolor: 'action.hover',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<FolderOpenRoundedIcon sx={{ fontSize: 19 }} />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<IconButton
|
||||
size="small"
|
||||
onClick={() => vfsAutomat.actions.toggleVfs()}
|
||||
aria-label="Dateien"
|
||||
sx={{
|
||||
p: 0.5,
|
||||
color: isVfsOpen ? 'primary.main' : 'text.secondary',
|
||||
bgcolor: isVfsOpen ? 'action.selected' : 'transparent',
|
||||
borderRadius: 1.5,
|
||||
border: '1px solid',
|
||||
borderColor: isVfsOpen ? 'primary.main' : 'transparent',
|
||||
'&:hover': {
|
||||
color: 'primary.main',
|
||||
bgcolor: 'action.hover',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<FolderOpenRoundedIcon sx={{ fontSize: 19 }} />
|
||||
</IconButton>
|
||||
|
||||
<IconButton size="small" onClick={this.handleClose} aria-label="Chat schließen" sx={{ p: 0.5 }}>
|
||||
<CloseRoundedIcon fontSize="small" />
|
||||
@@ -1070,15 +1068,15 @@ export default class ChatDrawer extends PureComponent {
|
||||
messages={
|
||||
streamingText && (!this.state.activeTurns || this.state.activeTurns.length === 0)
|
||||
? [
|
||||
...messages,
|
||||
{
|
||||
id: 'streaming',
|
||||
conversation_id: selectedConversationId,
|
||||
role: 'assistant',
|
||||
message: streamingText,
|
||||
streaming: true,
|
||||
},
|
||||
]
|
||||
...messages,
|
||||
{
|
||||
id: 'streaming',
|
||||
conversation_id: selectedConversationId,
|
||||
role: 'assistant',
|
||||
message: streamingText,
|
||||
streaming: true,
|
||||
},
|
||||
]
|
||||
: messages
|
||||
}
|
||||
activeTurns={this.state.activeTurns}
|
||||
|
||||
Reference in New Issue
Block a user