diff --git a/frontend/src/components/DocumentChunks.tsx b/frontend/src/components/DocumentChunks.tsx index 6e97062b..84919ea4 100644 --- a/frontend/src/components/DocumentChunks.tsx +++ b/frontend/src/components/DocumentChunks.tsx @@ -269,7 +269,7 @@ const DocumentChunks: React.FC = ({ const renderPathNavigation = () => { return ( -
+
-
+
{editingChunk ? ( !isEditing ? ( @@ -344,7 +344,7 @@ const DocumentChunks: React.FC = ({ } }} disabled={!editingText.trim() || (editingTitle === (editingChunk?.metadata?.title || '') && editingText === (editingChunk?.text || ''))} - className={`rounded-full px-3 py-1 text-sm text-white transition-all ${ + className={`text-nowrap rounded-full px-3 py-1 text-sm text-white transition-all ${ editingText.trim() && (editingTitle !== (editingChunk?.metadata?.title || '') || editingText !== (editingChunk?.text || '')) ? 'bg-purple-30 hover:bg-violets-are-blue cursor-pointer' : 'bg-gray-400 cursor-not-allowed' @@ -358,7 +358,7 @@ const DocumentChunks: React.FC = ({ <> @@ -370,7 +370,7 @@ const DocumentChunks: React.FC = ({ } }} disabled={!editingText.trim()} - className={`rounded-full px-3 py-1 text-sm text-white transition-all ${ + className={`text-nowrap rounded-full px-3 py-1 text-sm text-white transition-all ${ editingText.trim() ? 'bg-purple-30 hover:bg-violets-are-blue cursor-pointer' : 'bg-gray-400 cursor-not-allowed' @@ -463,8 +463,8 @@ const DocumentChunks: React.FC = ({ {chunk.metadata.token_count ? chunk.metadata.token_count.toLocaleString() : '-'} {t('settings.documents.tokensUnit')}
-
-

+

+

{chunk.text}