Skip to content

Commit 46f9cf3

Browse files
Fix text alignment: left-align all event content including raw data
- Add text-left class to all event content sections - Ensure JSON raw data is properly left-aligned for better readability - Maintain consistent left alignment throughout the events display
1 parent 68f1c57 commit 46f9cf3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

example/src/components/ConversationManager.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ export const ConversationManager: React.FC = () => {
582582
isRecent ? 'ring-2 ring-indigo-200 dark:ring-indigo-800' : ''
583583
}`}
584584
>
585-
<div className="flex justify-between items-center mb-2">
585+
<div className="flex justify-between items-center mb-2 text-left">
586586
<div className="flex items-center gap-2">
587587
<span className="text-sm font-medium text-indigo-600 dark:text-indigo-400 bg-indigo-50 dark:bg-indigo-900/30 px-2 py-1 rounded">
588588
{event.kind}
@@ -603,13 +603,13 @@ export const ConversationManager: React.FC = () => {
603603
</span>
604604
</div>
605605

606-
<div className="text-sm font-medium text-gray-900 dark:text-white mb-2">
606+
<div className="text-sm font-medium text-gray-900 dark:text-white mb-2 text-left">
607607
{displayContent.title}
608608
</div>
609609

610610
{displayContent.content && (
611-
<div className="text-sm text-gray-700 dark:text-gray-300 mb-2 p-2 bg-white dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700">
612-
<div className="max-h-32 overflow-y-auto">
611+
<div className="text-sm text-gray-700 dark:text-gray-300 mb-2 p-2 bg-white dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700 text-left">
612+
<div className="max-h-32 overflow-y-auto text-left">
613613
{displayContent.content.length > 200 ? (
614614
<>
615615
{displayContent.content.substring(0, 200)}
@@ -623,12 +623,12 @@ export const ConversationManager: React.FC = () => {
623623
)}
624624

625625
{displayContent.details && (
626-
<details className="mt-2">
627-
<summary className="text-xs text-gray-500 dark:text-gray-400 cursor-pointer hover:text-gray-700 dark:hover:text-gray-300">
626+
<details className="mt-2 text-left">
627+
<summary className="text-xs text-gray-500 dark:text-gray-400 cursor-pointer hover:text-gray-700 dark:hover:text-gray-300 text-left">
628628
Show raw data
629629
</summary>
630-
<div className="text-xs text-gray-600 dark:text-gray-400 font-mono bg-gray-100 dark:bg-gray-800 p-2 rounded border border-gray-200 dark:border-gray-700 overflow-x-auto mt-1">
631-
<pre>{JSON.stringify(displayContent.details, null, 2)}</pre>
630+
<div className="text-xs text-gray-600 dark:text-gray-400 font-mono bg-gray-100 dark:bg-gray-800 p-2 rounded border border-gray-200 dark:border-gray-700 overflow-x-auto mt-1 text-left">
631+
<pre className="text-left whitespace-pre-wrap">{JSON.stringify(displayContent.details, null, 2)}</pre>
632632
</div>
633633
</details>
634634
)}

0 commit comments

Comments
 (0)