Skip to content

Commit c553dc8

Browse files
committed
Include disclaimers for chat window
1 parent 0bc1ce1 commit c553dc8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

frontend/src/Chat.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Chat() {
3131
className={`container relative flex flex-col mx-auto p-6 bg-[#F4F4F2] rounded-lg shadow-[0_4px_6px_rgba(0,0,0,0.1)]
3232
${
3333
isOngoing
34-
? "justify-between h-[calc(100dvh-4rem)] max-h-[calc(100dvh-4rem)] sm:h-[calc(100dvh-10rem)]"
34+
? "justify-between h-[calc(100dvh-4rem-64px)] max-h-[calc(100dvh-4rem-64px)] sm:h-[calc(100dvh-10rem-64px)]"
3535
: "justify-center max-w-[600px]"
3636
}`}
3737
>
@@ -51,6 +51,16 @@ export default function Chat() {
5151
/>
5252
)}
5353
</div>
54+
<div
55+
className={`container mx-auto text-xs px-4 text-center ${isOngoing ? "max-w-auto my-2" : "max-w-[600px] my-4"}`}
56+
>
57+
<p className={`${isOngoing ? "mb-0" : "mb-2"}`}>
58+
{isOngoing
59+
? "This chatbot offers general housing law info and is not legal advice. For help with your situation, contact a lawyer."
60+
: "The information provided by this chatbot is general information only and does not constitute legal advice. While Tenant First Aid strives to keep the content accurate and up to date, completeness and accuracy is not guaranteed. If you have a specific legal issue or question, consider contacting a qualified attorney or a local legal aid clinic for personalized assistance."}
61+
</p>
62+
<p>For questions, contact [email protected]</p>
63+
</div>
5464
</div>
5565
<StatuteDrawer
5666
open={drawerOpen}

0 commit comments

Comments
 (0)