Skip to content

Commit e13cbbf

Browse files
committed
Remove InputBar wrapping div & padding correcting styles
1 parent 50d2ed1 commit e13cbbf

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

packages/compass-assistant/src/components/assistant-chat.tsx

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,6 @@ const noWrapFixesStyles = css({
151151
whiteSpace: 'nowrap',
152152
});
153153

154-
/** TODO(COMPASS-9751): This should be handled by Leafygreen's disclaimers update */
155-
const inputBarStyleFixes = css({
156-
width: '100%',
157-
paddingLeft: spacing[400],
158-
paddingRight: spacing[400],
159-
paddingBottom: spacing[100],
160-
});
161-
162154
function makeErrorMessage(message: string) {
163155
message = message || 'An error occurred';
164156
return `${message}. Try clearing the chat if the error persists.`;
@@ -476,16 +468,12 @@ export const AssistantChat: React.FunctionComponent<AssistantChatProps> = ({
476468
</p>
477469
</div>
478470
)}
479-
<div className={inputBarStyleFixes}>
480-
<InputBar
481-
data-testid="assistant-chat-input"
482-
onMessageSend={(messageBody) =>
483-
void handleMessageSend(messageBody)
484-
}
485-
state={status === 'submitted' ? 'loading' : undefined}
486-
textareaProps={inputBarTextareaProps}
487-
/>
488-
</div>
471+
<InputBar
472+
data-testid="assistant-chat-input"
473+
onMessageSend={(messageBody) => void handleMessageSend(messageBody)}
474+
state={status === 'submitted' ? 'loading' : undefined}
475+
textareaProps={inputBarTextareaProps}
476+
/>
489477
</ChatWindow>
490478
</LeafyGreenChatProvider>
491479
</div>

0 commit comments

Comments
 (0)