Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adjust padding #178

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/grumpy-ghosts-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openassistantgpt/ui': patch
---

Adjust pading in chat window when disabeling icon.
2 changes: 1 addition & 1 deletion examples/website-chatbot-window/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Home() {
style={{
overflow: 'hidden',
height: '80vh',
width: '480px',
width: '1080px',
bottom: '-30px',
border: '2px solid #e2e8f0',
borderRadius: '0.375rem',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,19 @@
variant: 'destructive',
});
}
}, [error]);

Check warning on line 114 in packages/ui/components/chat.tsx

View workflow job for this annotation

GitHub Actions / ESLint

React Hook useEffect has a missing dependency: 'toast'. Either include it or remove the dependency array

useEffect(() => {
if (onThreadIdChange) {
onThreadIdChange(threadId);
}
}, [threadId]);

Check warning on line 120 in packages/ui/components/chat.tsx

View workflow job for this annotation

GitHub Actions / ESLint

React Hook useEffect has a missing dependency: 'onThreadIdChange'. Either include it or remove the dependency array. If 'onThreadIdChange' changes too often, find the parent component that defines it and wrap that definition in useCallback

useEffect(() => {
if (onMessagesChange) {
onMessagesChange(messages);
}
}, [messages]);

Check warning on line 126 in packages/ui/components/chat.tsx

View workflow job for this annotation

GitHub Actions / ESLint

React Hook useEffect has a missing dependency: 'onMessagesChange'. Either include it or remove the dependency array. If 'onMessagesChange' changes too often, find the parent component that defines it and wrap that definition in useCallback

useEffect(() => {
if (defaultMessage !== '') {
Expand All @@ -132,7 +132,7 @@
target: { value: defaultMessage },
} as React.ChangeEvent<HTMLInputElement>);
}
}, [defaultMessage]);

Check warning on line 135 in packages/ui/components/chat.tsx

View workflow job for this annotation

GitHub Actions / ESLint

React Hook useEffect has missing dependencies: 'handleInputChange' and 'input'. Either include them or remove the dependency array

function closeChat() {
window.parent.postMessage('closeChat', '*');
Expand Down Expand Up @@ -224,7 +224,7 @@
setUploadQueue([]);
}
},
[setAttachments],

Check warning on line 227 in packages/ui/components/chat.tsx

View workflow job for this annotation

GitHub Actions / ESLint

React Hook useCallback has a missing dependency: 'uploadFile'. Either include it or remove the dependency array
);

return (
Expand All @@ -249,7 +249,7 @@
<div
ref={messagesContainerRef}
className={cn(
'pb-[200px] overflow-auto max-h-max pl-6 sm:pl-20 sm:pr-20 md:pb-[100px] pt-4 md:pt-10',
'pb-[200px] overflow-auto max-h-max pl-2 pr-2 sm:pl-20 sm:pr-20 md:pb-[100px] pt-4 md:pt-10',
className,
)}
>
Expand Down
Loading