Skip to content

Commit cc58145

Browse files
committed
v0.1.8: ChatWidget font size inheritance fix
1 parent 206d676 commit cc58145

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@appgram/react",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "React library for integrating Appgram portal features with pre-built UI components and headless hooks",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/components/chat/ChatWidget.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -584,13 +584,13 @@ export function ChatWidget({
584584
</div>
585585
<div className="flex-1">
586586
<p
587-
className="text-sm font-medium"
587+
className="font-medium"
588588
style={{ color: resolvedColors.foreground }}
589589
>
590590
{greeting}
591591
</p>
592592
<p
593-
className="text-sm mt-0.5"
593+
className="mt-0.5"
594594
style={{ color: resolvedColors.mutedForeground }}
595595
>
596596
{subtitle}
@@ -610,7 +610,7 @@ export function ChatWidget({
610610
<button
611611
key={index}
612612
onClick={() => handleOptionClick(option)}
613-
className="block w-full text-left text-sm px-4 py-2.5 rounded-xl transition-all duration-150 ease-out"
613+
className="block w-full text-left px-4 py-2.5 rounded-xl transition-all duration-150 ease-out"
614614
style={{
615615
backgroundColor: resolvedColors.inputBackground,
616616
border: `1px solid ${resolvedColors.border}`,
@@ -645,7 +645,7 @@ export function ChatWidget({
645645
<div className={cn("flex-1", message.sender === 'user' && "flex flex-col items-end")}>
646646
{message.sender === 'user' ? (
647647
<div
648-
className="rounded-2xl rounded-tr-md px-4 py-3 text-sm max-w-[85%] shadow-sm"
648+
className="rounded-2xl rounded-tr-md px-4 py-3 max-w-[85%] shadow-sm"
649649
style={{
650650
backgroundColor: resolvedColors.userMessageBackground,
651651
color: resolvedColors.userMessageText,
@@ -802,7 +802,7 @@ export function ChatWidget({
802802
onKeyDown={handleKeyDown}
803803
placeholder="Ask a question..."
804804
disabled={isLoading}
805-
className="flex-1 bg-transparent text-sm focus:outline-none py-2 disabled:opacity-50"
805+
className="flex-1 bg-transparent focus:outline-none py-2 disabled:opacity-50"
806806
style={{
807807
color: resolvedColors.foreground,
808808
}}

0 commit comments

Comments
 (0)