File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
libs/remix-ui/remix-ai-assistant/src/components Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export const ChatHistoryComponent: React.FC<ChatHistoryComponentProps> = ({
71
71
return (
72
72
< div
73
73
ref = { historyRef }
74
- className = "d-flex flex-column overflow-y-auto border-box-sizing preserve-wrap w-100 "
74
+ className = "d-flex flex-column overflow-y-auto border-box-sizing preserve-wrap overflow-x-hidden "
75
75
>
76
76
{ messages . length === 0 ? (
77
77
< AiChatIntro sendPrompt = { sendPrompt } />
@@ -81,7 +81,7 @@ export const ChatHistoryComponent: React.FC<ChatHistoryComponentProps> = ({
81
81
msg . role === 'user' ? 'bubble-user bg-light' : 'bubble-assistant bg-light'
82
82
83
83
return (
84
- < div key = { msg . id } className = "chat-row d-flex mb-2 w-100" >
84
+ < div key = { msg . id } className = "chat-row d-flex mb-2" style = { { minWidth : '90%' } } >
85
85
{ /* Avatar for assistant */ }
86
86
{ msg . role === 'assistant' && (
87
87
< img
@@ -92,7 +92,7 @@ export const ChatHistoryComponent: React.FC<ChatHistoryComponentProps> = ({
92
92
) }
93
93
94
94
{ /* Bubble */ }
95
- < div data-id = "ai-response-chat-bubble-section" className = "overflow-y-scroll w-100 mr-1" >
95
+ < div data-id = "ai-response-chat-bubble-section" className = "overflow-y-scroll" style = { { width : '90%' } } >
96
96
< div className = { `chat-bubble p-2 rounded ${ bubbleClass } ` } data-id = "ai-user-chat-bubble" >
97
97
{ msg . role === 'user' && (
98
98
< small className = "text-uppercase fw-bold text-secondary d-block mb-1" >
Original file line number Diff line number Diff line change @@ -475,13 +475,10 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
475
475
476
476
return (
477
477
< div
478
- className = "d-flex flex-column h-100 w-100"
478
+ className = "d-flex flex-column h-100 w-100 overflow-x-hidden "
479
479
ref = { aiChatRef }
480
- onBlur = { async ( ) => {
481
- await props . plugin . call ( 'layout' , 'resetPinnedPanel' )
482
- } }
483
480
>
484
- < section id = "remix-ai-chat-history" className = "h-83 d-flex flex-column align-items-center p-2 overflow-x-hidden" style = { { flex : 7 , overflowY : 'scroll' } } ref = { chatHistoryRef } >
481
+ < section id = "remix-ai-chat-history" className = "h-83 d-flex flex-column p-2 overflow-x-hidden" style = { { flex : 7 , overflowY : 'scroll' } } ref = { chatHistoryRef } >
485
482
< div data-id = "remix-ai-assistant-ready" > </ div >
486
483
{ /* hidden hook for E2E tests: data-streaming="true|false" */ }
487
484
< div
You can’t perform that action at this time.
0 commit comments