Skip to content

Commit fd00983

Browse files
committed
fix(web): left-align sidebar titles while preserving bidi
1 parent cd84f62 commit fd00983

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/web/src/components/sidebar/SidebarThreadRow.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
10131013
<span
10141014
aria-hidden
10151015
className={cn(
1016-
"min-w-0 flex-1 text-start text-sm transition-opacity motion-reduce:transition-none",
1016+
"min-w-0 flex-1 text-left text-sm transition-opacity motion-reduce:transition-none",
10171017
shouldRecede ? "font-normal" : "font-medium",
10181018
variant !== "slim"
10191019
? cn(
@@ -1719,13 +1719,14 @@ export const SidebarSearchResultRow = memo(function SidebarSearchResultRow(props
17191719
<span className="flex min-w-0 items-center gap-2.5">
17201720
<span
17211721
className={cn(
1722-
"min-w-0 flex-1 truncate",
1722+
"min-w-0 flex-1 truncate text-left",
17231723
props.isSettled
17241724
? "font-normal text-secondary-label/70 group-hover/sidebar-row:text-foreground"
17251725
: "font-medium text-foreground",
17261726
(props.isHighlighted || props.isRouteActive) && "text-foreground",
17271727
thread.titleRegeneration != null && "opacity-55",
17281728
)}
1729+
dir={textDirection(thread.title)}
17291730
>
17301731
{thread.title}
17311732
</span>

0 commit comments

Comments
 (0)