Skip to content

Commit

Permalink
Adds disclaimer text to Chat. (#201)
Browse files Browse the repository at this point in the history
* Adds disclaimer text to Chat.

* Removes disclaimer on default message.

* Moves message to be above chat box from linear comments.
  • Loading branch information
bLopata authored Jan 13, 2025
1 parent e65a315 commit 623deb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions www/app/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,11 @@ What\'s on your mind? Let\'s dive in. 🌱`,
setIsThoughtsOpen={setIsThoughtsOpen}
/>
<div className="p-3 pb-0 lg:p-5 lg:pb-0">
{messages!.length > 1 && (
<div className="disclaimer-text text-center mb-2">
Bloom can make mistakes. Always double-check important information.
</div>
)}
<form
id="send"
className="flex p-3 lg:p-5 gap-3 border-gray-300"
Expand Down
6 changes: 6 additions & 0 deletions www/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ html {
animation-delay: 0.4s;
}

.disclaimer-text {
font-size: 0.8rem;
opacity: 0.7;
color: hsl(var(--foreground));
}

@layer base {
:root {
--background: 40, 20%, 94%; /* #f3f1ed */
Expand Down

0 comments on commit 623deb2

Please sign in to comment.