Skip to content

Commit 53291e1

Browse files
committed
Wrap search snippets in sidebar
1 parent b0ff60c commit 53291e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/PromptTreeItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
289289

290290
{!isFolder && searchTerm.trim() && node.searchSnippet && (
291291
<div
292-
className="text-[11px] text-text-secondary leading-snug truncate pr-3"
292+
className="text-[11px] text-text-secondary leading-snug whitespace-pre-wrap break-words pr-3"
293293
style={{ paddingLeft: `${snippetPaddingLeft}px` }}
294294
>
295295
{highlightMatches(node.searchSnippet, searchTerm)}

0 commit comments

Comments
 (0)