Skip to content

Commit 8c4af53

Browse files
fix(web): Fix text direction on filter panel (#474)
1 parent 08df01f commit 8c4af53

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Fixed
1616
- Add warning logs when local repo index fails to match pattern. [#712](https://github.com/sourcebot-dev/sourcebot/pull/712)
17+
- Fixed issue with text direction issues with special characters in filter panel. [#474](https://github.com/sourcebot-dev/sourcebot/pull/474)
1718

1819
## [4.10.7] - 2025-12-29
1920

packages/web/src/app/[domain]/search/components/codePreviewPanel/codePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const CodePreview = ({
138138
}}
139139
title={file.filepath}
140140
>
141-
{file.filepath}
141+
<span>{file.filepath}</span>
142142
</span>
143143
</div>
144144

packages/web/src/app/[domain]/search/components/filterPanel/entry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const Entry = ({
5252
<div className="overflow-hidden flex-1 min-w-0">
5353
<Tooltip>
5454
<TooltipTrigger asChild>
55-
<p className="overflow-hidden text-ellipsis whitespace-nowrap truncate-start">{displayName}</p>
55+
<p className="overflow-hidden text-ellipsis whitespace-nowrap truncate-start"><span>{displayName}</span></p>
5656
</TooltipTrigger>
5757
<TooltipContent side="right" className="max-w-sm">
5858
<p className="font-mono text-sm break-all whitespace-pre-wrap">{displayName}</p>

packages/web/src/app/globals.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@
313313
text-overflow: ellipsis;
314314
}
315315

316+
.truncate-start > * {
317+
direction: ltr;
318+
unicode-bidi: embed;
319+
}
320+
316321
@layer base {
317322
* {
318323
@apply border-border;

packages/web/src/features/chat/components/chatThread/tools/shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const FileListItem = ({
3030
pathType: 'blob',
3131
})}
3232
>
33-
{path}
33+
<span>{path}</span>
3434
</Link>
3535
</div>
3636
)

0 commit comments

Comments
 (0)