Tina Tarighian
commited on
Commit
·
d82c8c7
1
Parent(s):
5f82b57
work breaks
Browse files- components/ThoughtBubble.js +14 -3
components/ThoughtBubble.js
CHANGED
|
@@ -57,8 +57,20 @@ const ThoughtBubble = ({
|
|
| 57 |
}
|
| 58 |
|
| 59 |
if (thought && isMouthOpen) {
|
| 60 |
-
// Much larger text size
|
| 61 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
}
|
| 63 |
|
| 64 |
return <p className={`${isMobile ? 'text-sm' : 'text-lg'} font-medium text-gray-400 italic`}>Waiting for hand gesture...</p>;
|
|
@@ -169,7 +181,6 @@ const ThoughtBubble = ({
|
|
| 169 |
textAlign: isThinking ? 'center' : 'left',
|
| 170 |
zIndex: 50,
|
| 171 |
fontFamily: 'Google Sans, sans-serif',
|
| 172 |
-
transition: animateThinking ? 'none' : 'all 0.3s ease-in-out',
|
| 173 |
opacity: getOpacity(),
|
| 174 |
display: 'flex',
|
| 175 |
justifyContent: isThinking ? 'center' : 'flex-start',
|
|
|
|
| 57 |
}
|
| 58 |
|
| 59 |
if (thought && isMouthOpen) {
|
| 60 |
+
// Much larger text size with word-break control
|
| 61 |
+
return (
|
| 62 |
+
<p
|
| 63 |
+
style={{
|
| 64 |
+
fontSize: isMobile ? '18px' : '22px',
|
| 65 |
+
hyphens: 'none',
|
| 66 |
+
wordBreak: 'normal',
|
| 67 |
+
overflowWrap: 'break-word'
|
| 68 |
+
}}
|
| 69 |
+
className="font-medium text-gray-800"
|
| 70 |
+
>
|
| 71 |
+
{thought}
|
| 72 |
+
</p>
|
| 73 |
+
);
|
| 74 |
}
|
| 75 |
|
| 76 |
return <p className={`${isMobile ? 'text-sm' : 'text-lg'} font-medium text-gray-400 italic`}>Waiting for hand gesture...</p>;
|
|
|
|
| 181 |
textAlign: isThinking ? 'center' : 'left',
|
| 182 |
zIndex: 50,
|
| 183 |
fontFamily: 'Google Sans, sans-serif',
|
|
|
|
| 184 |
opacity: getOpacity(),
|
| 185 |
display: 'flex',
|
| 186 |
justifyContent: isThinking ? 'center' : 'flex-start',
|