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

ui fixes #130

Merged
merged 1 commit into from
May 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
4 changes: 3 additions & 1 deletion src/components/AiChatBot/AiChatBotStyles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

.textarea {
width: 100%;
height: 100px; /* Adjust height as needed */
height: 40px !important; /* Adjust height as needed */
border: none;
resize: none;
padding: 10px;
Expand All @@ -35,6 +35,8 @@
z-index: 1;
background: white; /* Ensure textarea background color covers the content */
border-color: transparent;
color: black !important;

}
.textarea:focus-visible, .textarea:focus, .textarea:active{
border-color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion src/components/AiChatBot/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const ChatInput: FC<Props> = ({ onSend, hasSentMessage }) => {
<div className="relative">
{!hasSentMessage && (
<div className="mb-4">
<h3 className="text-lg font-semibold">Suggested Prompts</h3>
<h3 className="text-lg font-semibold" style={{ color: 'black' }}>Suggested Prompts</h3>
<div className="flex flex-col gap-2 mt-2">
{suggestedPrompts.map((prompt, index) => (
<button
Expand Down
4 changes: 2 additions & 2 deletions src/components/AiChatBot/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const Modal: React.FC<ModalProps> = ({ isOpen, onClose, children }) => {
<span className="text-xs bg-gradient-to-r from-white/50 bg-indigo-50/50 text-black px-2 py-1 rounded-full">EXPERIMENTAL</span>
</div>
<button
className="absolute top-3 right-2 text-black bg-transparent border-none focus:outline-none"
onClick={onClose}
className="absolute top-3 right-2 text-black bg-transparent border-none focus:outline-none cursor-pointer"
onClick={onClose}
>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
</button>
Expand Down
Loading