Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🧹 refactor: Use Logical Spacing and Positioning in the App Shell (#17269)

Marco Beretta14096e7576e2
diff --git a/client/src/components/Chat/ExportAndShareMenu.tsx b/client/src/components/Chat/ExportAndShareMenu.tsx
index a44e349e68..ca5b81610e 100644
--- a/client/src/components/Chat/ExportAndShareMenu.tsx
+++ b/client/src/components/Chat/ExportAndShareMenu.tsx
@@ -56,7 +56,7 @@ export default function ExportAndShareMenu({
/>
{hasSharedLink && (
<span
- className="bg-status-info ring-presentation absolute -top-0.5 -right-0.5 size-2 rounded-full ring-2"
+ className="bg-status-info ring-presentation absolute -inset-e-0.5 -top-0.5 size-2 rounded-full ring-2"
data-testid="header-shared-link-indicator"
aria-hidden="true"
/>
@@ -66,7 +66,7 @@ export default function ExportAndShareMenu({
/>
}
items={items}
- className={isSmallScreen ? '' : 'absolute top-0 right-0 mt-2'}
+ className={isSmallScreen ? '' : 'absolute inset-e-0 top-0 mt-2'}
/>
{dialogs}
</>
diff --git a/client/src/components/Chat/Footer.tsx b/client/src/components/Chat/Footer.tsx
index 17afbae86c..8452e32976 100644
--- a/client/src/components/Chat/Footer.tsx
+++ b/client/src/components/Chat/Footer.tsx
@@ -160,7 +160,7 @@ function Footer({ className, startupConfig, configuredOnly = false }: FooterProp
<React.Fragment key={`footer-element-${index}`}>
{contentRender}
{!isLastElement && (
- <div key={`separator-${index}`} className="border-border-medium h-2 border-r" />
+ <div key={`separator-${index}`} className="border-border-medium h-2 border-e" />
)}
</React.Fragment>
);
diff --git a/client/src/components/Chat/Header.tsx b/client/src/components/Chat/Header.tsx
index 46651aa14f..a7c743afca 100644
--- a/client/src/components/Chat/Header.tsx
+++ b/client/src/components/Chat/Header.tsx
@@ -103,7 +103,7 @@ function Header({
<div
className={cn(
'flex min-w-0 flex-1 items-center gap-2',
- !isSmallScreen && 'pl-3 transition-all duration-200 ease-in-out',
+ !isSmallScreen && 'ps-3 transition-all duration-200 ease-in-out',
hiddenBehindNav,
)}
>
diff --git a/client/src/components/Chat/Landing.tsx b/client/src/components/Chat/Landing.tsx
index 2e15665dcb..b799b6e871 100644
--- a/client/src/components/Chat/Landing.tsx
+++ b/client/src/components/Chat/Landing.tsx
@@ -166,7 +166,7 @@ export default function Landing({ centerFormOnLanding }: { centerFormOnLanding:
</div>
{startupConfig?.showBirthdayIcon && (
<TooltipAnchor
- className="absolute right-2 bottom-[1.6875rem]"
+ className="absolute inset-e-2 bottom-[1.6875rem]"
description={localize('com_ui_happy_birthday')}
aria-label={localize('com_ui_happy_birthday')}
>
diff --git a/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx b/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx
index 580967df36..daa8fc5be1 100644
--- a/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx
@@ -81,7 +81,7 @@ function ModelSelectorContent() {
{selectedIcon}
</div>
)}
- <span className="truncate text-left">{selectedDisplayValue}</span>
+ <span className="truncate text-start">{selectedDisplayValue}</span>
</button>
}
/>
diff --git a/client/src/components/Chat/Menus/Endpoints/components/CustomGroup.tsx b/client/src/components/Chat/Menus/Endpoints/components/CustomGroup.tsx
index 76f67681f8..1284154cf6 100644
--- a/client/src/components/Chat/Menus/Endpoints/components/CustomGroup.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/components/CustomGroup.tsx
@@ -32,7 +32,7 @@ export function CustomGroup({ groupName, specs, groupIcon }: CustomGroupProps) {
<GroupIcon iconURL={groupIcon} groupName={groupName} />
</div>
)}
- <span className="truncate text-left">{groupName}</span>
+ <span className="truncate text-start">{groupName}</span>
</div>
</div>
}
diff --git a/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsx b/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsx
index f3ad14ac27..8dc6203583 100644
--- a/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsx
@@ -76,7 +76,7 @@ const SettingsButton = ({
'group-focus-visible/button:grid-cols-[1fr] group-focus-visible/button:opacity-100',
)}
>
- <span className="min-w-0 truncate pr-0.5">{text}</span>
+ <span className="min-w-0 truncate pe-0.5">{text}</span>
</span>
</button>
);
@@ -279,7 +279,7 @@ export function EndpointItem({ endpoint, endpointIndex }: EndpointItemProps) {
{endpoint.icon}
</div>
)}
- <span className="truncate text-left">{endpoint.label}</span>
+ <span className="truncate text-start">{endpoint.label}</span>
</div>
);
diff --git a/client/src/components/Chat/Menus/Endpoints/components/EndpointModelItem.tsx b/client/src/components/Chat/Menus/Endpoints/components/EndpointModelItem.tsx
index 6975a83beb..caac695594 100644
--- a/client/src/components/Chat/Menus/Endpoints/components/EndpointModelItem.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/components/EndpointModelItem.tsx
@@ -125,7 +125,7 @@ function EndpointModelItemComponent({
<div className="flex w-full min-w-0 items-center gap-2 px-1 py-1">
{renderAvatar()}
<span className="truncate">{modelName}</span>
- {isGlobal && <EarthIcon className="text-surface-submit ml-1 size-4" />}
+ {isGlobal && <EarthIcon className="text-surface-submit ms-1 size-4" />}
</div>
<button
type="button"
diff --git a/client/src/components/Chat/Menus/Endpoints/components/GroupIcon.tsx b/client/src/components/Chat/Menus/Endpoints/components/GroupIcon.tsx
index 12ab0544f5..9070e0afa3 100644
--- a/client/src/components/Chat/Menus/Endpoints/components/GroupIcon.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/components/GroupIcon.tsx
@@ -37,8 +37,8 @@ const GroupIcon: React.FC<GroupIconProps> = ({ iconURL, groupName }) => {
<ProviderIcon provider={provider} size={20} className="icon-md shrink-0" />
{imageError && (
<div
- className="bg-surface-destructive absolute flex items-center justify-center rounded-full"
- style={{ width: pxToRem(14), height: pxToRem(14), top: 0, right: 0 }}
+ className="bg-surface-destructive absolute inset-e-0 top-0 flex items-center justify-center rounded-full"
+ style={{ width: pxToRem(14), height: pxToRem(14) }}
>
<AlertCircle className="text-text-on-status size-2.5" />
</div>
diff --git a/client/src/components/Chat/Menus/Endpoints/components/Marketplace.tsx b/client/src/components/Chat/Menus/Endpoints/components/Marketplace.tsx
index 60a02687ab..cc671d34f7 100644
--- a/client/src/components/Chat/Menus/Endpoints/components/Marketplace.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/components/Marketplace.tsx
@@ -47,9 +47,9 @@ export default function MarketplaceItem({
>
<div className="flex w-full min-w-0 items-center gap-2 px-1 py-1">
<div className="flex h-5 w-5 shrink-0 items-center justify-center">
- <LayoutGrid className="h-5 w-5 text-text-primary" aria-hidden="true" />
+ <LayoutGrid className="text-text-primary h-5 w-5" aria-hidden="true" />
</div>
- <span className="truncate text-left">{label}</span>
+ <span className="truncate text-start">{label}</span>
</div>
</MenuItem>
);
diff --git a/client/src/components/Chat/Menus/Endpoints/components/ModelSpecItem.tsx b/client/src/components/Chat/Menus/Endpoints/components/ModelSpecItem.tsx
index 23b833da6d..c3c169154b 100644
--- a/client/src/components/Chat/Menus/Endpoints/components/ModelSpecItem.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/components/ModelSpecItem.tsx
@@ -60,7 +60,7 @@ export function ModelSpecItem({ spec, isSelected, posInSet, setSize }: ModelSpec
</div>
)}
<div className="flex min-w-0 flex-col gap-1">
- <span className="truncate text-left">{spec.label}</span>
+ <span className="truncate text-start">{spec.label}</span>
<SpecDescription description={spec.description} />
</div>
</div>
diff --git a/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx b/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx
index e47fd17211..0d0a62fa51 100644
--- a/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx
+++ b/client/src/components/Chat/Menus/Endpoints/components/SearchResults.tsx
@@ -245,7 +245,7 @@ export function SearchResults({ results, localize, searchValue }: SearchResultsP
</div>
)}
<div className="flex min-w-0 flex-col gap-1">
- <span className="truncate text-left">{spec.label}</span>
+ <span className="truncate text-start">{spec.label}</span>
<SpecDescription description={spec.description} />
</div>
</div>
@@ -279,7 +279,7 @@ export function SearchResults({ results, localize, searchValue }: SearchResultsP
</div>
{showMarketplace && (
<MarketplaceItem
- className="px-3 py-2 pl-6"
+ className="px-3 py-2 ps-6"
label={localize('com_agents_marketplace')}
posInSet={resultOffset + 1}
setSize={listboxSetSize}
diff --git a/client/src/components/Chat/Menus/HeaderMenu.tsx b/client/src/components/Chat/Menus/HeaderMenu.tsx
index c83e1becfd..8837ace16e 100644
--- a/client/src/components/Chat/Menus/HeaderMenu.tsx
+++ b/client/src/components/Chat/Menus/HeaderMenu.tsx
@@ -177,7 +177,7 @@ export default function HeaderMenu({
<Ellipsis className="icon-md" aria-hidden="true" />
{exportShare.hasSharedLink && (
<span
- className="bg-status-info ring-presentation absolute -top-0.5 -right-0.5 size-2 rounded-full ring-2"
+ className="bg-status-info ring-presentation absolute -inset-e-0.5 -top-0.5 size-2 rounded-full ring-2"
data-testid="header-menu-shared-link-indicator"
aria-hidden="true"
/>
diff --git a/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsx b/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsx
index 8dd5d1cf8c..4b099c7457 100644
--- a/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsx
+++ b/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsx
@@ -191,7 +191,7 @@ const EditPresetDialog = ({
{/* PopoverButtons section */}
<div className="flex w-full">
<PopoverButtons
- buttonClass="ml-0 w-full border border-border-medium p-2 h-[2.5rem] justify-center mt-0"
+ buttonClass="ms-0 w-full border border-border-medium p-2 h-[2.5rem] justify-center mt-0"
iconClass="hidden lg:block w-4"
endpoint={endpoint}
endpointType={endpointType}
diff --git a/client/src/components/Chat/Menus/Presets/PresetItems.tsx b/client/src/components/Chat/Menus/Presets/PresetItems.tsx
index 2a1e75b382..8c6c79f7a6 100644
--- a/client/src/components/Chat/Menus/Presets/PresetItems.tsx
+++ b/client/src/components/Chat/Menus/Presets/PresetItems.tsx
@@ -241,7 +241,7 @@ const PresetItems: FC<{
variant="ghost"
shape="theme"
type="button"
- className="h-auto min-w-0 flex-1 justify-start gap-1 p-2 text-left text-xs font-normal hover:bg-transparent focus-visible:ring-offset-0"
+ className="h-auto min-w-0 flex-1 justify-start gap-1 p-2 text-start text-xs font-normal hover:bg-transparent focus-visible:ring-offset-0"
onClick={() => onSelectPreset(preset)}
aria-label={presetTitle}
data-testid={`preset-item-${presetId}`}
diff --git a/client/src/components/Chat/__tests__/ExportAndShareMenu.test.tsx b/client/src/components/Chat/__tests__/ExportAndShareMenu.test.tsx
index 02a2c411dc..59847e1273 100644
--- a/client/src/components/Chat/__tests__/ExportAndShareMenu.test.tsx
+++ b/client/src/components/Chat/__tests__/ExportAndShareMenu.test.tsx
@@ -49,7 +49,7 @@ describe('ExportAndShareMenu link status', () => {
expect(screen.getByTestId('header-shared-link-indicator')).toHaveClass(
'rounded-full',
'bg-status-info',
- '-right-0.5',
+ '-inset-e-0.5',
'-top-0.5',
'size-2',
);
diff --git a/client/src/components/Conversations/Convo.tsx b/client/src/components/Conversations/Convo.tsx
index e1c9ccdf8d..af5a5f4649 100644
--- a/client/src/components/Conversations/Convo.tsx
+++ b/client/src/components/Conversations/Convo.tsx
@@ -345,7 +345,7 @@ function Conversation({
className={cn(
'group focus-visible:ring-text-primary relative flex h-12 w-full items-center rounded-lg outline-hidden focus-visible:ring-2 focus-visible:outline-hidden focus-visible:ring-inset md:h-9',
isActiveConvo || isPopoverActive
- ? 'bg-surface-nav-selected before:bg-text-primary before:absolute before:top-1 before:bottom-1 before:left-0 before:w-0.5 before:rounded-full'
+ ? 'bg-surface-nav-selected before:bg-text-primary before:absolute before:inset-s-0 before:top-1 before:bottom-1 before:w-0.5 before:rounded-full'
: 'hover:bg-surface-nav-hover',
)}
onPointerEnter={(event) => {
@@ -422,7 +422,7 @@ function Conversation({
size={34}
strokeWidth={1.9}
bgOpacity={0.14}
- className="pointer-events-none absolute -top-[0.4375rem] -left-[0.4375rem] size-[2.125rem]"
+ className="pointer-events-none absolute -inset-s-[0.4375rem] -top-[0.4375rem] size-[2.125rem]"
/>
)}
{isUnseen && !isGenerating && (
@@ -430,7 +430,7 @@ function Conversation({
<span
aria-hidden="true"
className={cn(
- 'bg-status-info pointer-events-none absolute -right-0.5 -bottom-0.5 size-2 rounded-full ring-2',
+ 'bg-status-info pointer-events-none absolute -inset-e-0.5 -bottom-0.5 size-2 rounded-full ring-2',
isActiveConvo || isPopoverActive
? 'ring-surface-nav-selected'
: 'ring-surface-sidebar group-hover:ring-surface-nav-hover',
@@ -441,7 +441,7 @@ function Conversation({
</ConvoLink>
)}
{isSharedBadgeVisible && (
- <Link2 className="icon-sm text-text-secondary mr-1 shrink-0" aria-hidden="true" />
+ <Link2 className="icon-sm text-text-secondary me-1 shrink-0" aria-hidden="true" />
)}
{projectBadgeProjectId && (
<ProjectBadge projectId={projectBadgeProjectId} labelId={projectLabelId} />
@@ -449,7 +449,7 @@ function Conversation({
{conversation.pinned === true && (
<UnpinButton
testId="convo-unpin-button"
- className="mr-1"
+ className="me-1"
keepVisible={isPopoverActive}
onClick={(e) => {
e.stopPropagation();
@@ -459,7 +459,7 @@ function Conversation({
)}
<div
className={cn(
- 'mr-1 flex shrink-0 origin-left items-center justify-center',
+ 'me-1 flex shrink-0 origin-left items-center justify-center rtl:origin-right',
actionVisibilityClassName,
actionWidthClassName,
)}
diff --git a/client/src/components/Conversations/ConvoLink.tsx b/client/src/components/Conversations/ConvoLink.tsx
index b9ce02b7e2..357d4b8f94 100644
--- a/client/src/components/Conversations/ConvoLink.tsx
+++ b/client/src/components/Conversations/ConvoLink.tsx
@@ -134,7 +134,7 @@ const ConvoLink: React.FC<ConvoLinkProps> = ({
<button
type="button"
className={cn(
- 'focus-visible:ring-text-primary flex w-full min-w-0 grow cursor-pointer items-center gap-2 self-stretch overflow-hidden rounded-lg px-2 text-left outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
+ 'focus-visible:ring-text-primary flex w-full min-w-0 grow cursor-pointer items-center gap-2 self-stretch overflow-hidden rounded-lg px-2 text-start outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
isActiveConvo || isPopoverActive ? 'bg-surface-nav-selected' : '',
)}
aria-current={isActiveConvo ? 'page' : undefined}
diff --git a/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsx b/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsx
index 310f0da226..f74fa8321a 100644
--- a/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsx
+++ b/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsx
@@ -109,7 +109,7 @@ function ConvoOptions({
icon: isPinLoading ? (
<Spinner className="size-4" />
) : (
- <Pin className="icon-sm text-text-primary mr-2" aria-hidden="true" />
+ <Pin className="icon-sm text-text-primary me-2" aria-hidden="true" />
),
},
{
@@ -118,24 +118,24 @@ function ConvoOptions({
/* The conversation on screen is definitionally read: its own seen triggers would
clear the flag the moment it is set. */
show: !isActiveConvo && !isUnseen,
- icon: <Mail className="icon-sm text-text-primary mr-2" aria-hidden="true" />,
+ icon: <Mail className="icon-sm text-text-primary me-2" aria-hidden="true" />,
},
{
label: localize('com_ui_rename'),
onClick: renameHandler,
disabled: !canRename,
- icon: <Pen className="icon-sm text-text-primary mr-2" aria-hidden="true" />,
+ icon: <Pen className="icon-sm text-text-primary me-2" aria-hidden="true" />,
},
{
label: localize(isArchived ? 'com_ui_unarchive' : 'com_ui_archive'),
onClick: handleArchiveClick,
hideOnClick: false,
- icon: renderArchiveIcon(isArchiveLoading, isArchived, 'icon-sm mr-2 text-text-primary'),
+ icon: renderArchiveIcon(isArchiveLoading, isArchived, 'icon-sm me-2 text-text-primary'),
},
{
label: localize('com_ui_delete'),
onClick: deleteHandler,
- icon: <Trash className="icon-sm text-text-primary mr-2" aria-hidden="true" />,
+ icon: <Trash className="icon-sm text-text-primary me-2" aria-hidden="true" />,
ariaHasPopup: 'dialog' as const,
ariaControls: 'delete-conversation-dialog',
/** NOTE: THE FOLLOWING PROPS ARE REQUIRED FOR MENU ITEMS THAT OPEN DIALOGS */
diff --git a/client/src/components/Conversations/ConvoOptions/ShareButton.tsx b/client/src/components/Conversations/ConvoOptions/ShareButton.tsx
index 1c99951c11..3767277c0f 100644
--- a/client/src/components/Conversations/ConvoOptions/ShareButton.tsx
+++ b/client/src/components/Conversations/ConvoOptions/ShareButton.tsx
@@ -129,7 +129,7 @@ export default function ShareButton({
}
}}
>
- <OGDialogHeader className="shrink-0 px-6 pt-6 pr-14 pb-0 text-left">
+ <OGDialogHeader className="shrink-0 px-6 pe-14 pt-6 pb-0 text-start">
<div className="flex items-center gap-2">
<OGDialogTitle className="text-xl font-semibold tracking-tight">
{localize('com_ui_share_link_to_chat')}
diff --git a/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx b/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx
index 126fad72e0..66f31cbacd 100644
--- a/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx
+++ b/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx
@@ -267,7 +267,7 @@ export default function SharedLinkButton({
disabled={isCreateLoading || isPublishing}
variant="submit"
onClick={createShareLink}
- className="ml-auto min-w-28"
+ className="ms-auto min-w-28"
>
{!isCreateLoading && !isPublishing && localize('com_ui_create_link')}
{(isCreateLoading || isPublishing) && <Spinner className="size-4" />}
@@ -299,7 +299,7 @@ export default function SharedLinkButton({
</GenericGrantAccessDialog>
)}
- <div className="ml-auto flex flex-wrap items-center justify-end gap-1.5 sm:gap-2">
+ <div className="ms-auto flex flex-wrap items-center justify-end gap-1.5 sm:gap-2">
{isSmallScreen && canNativeShare && (
<TooltipAnchor
description={localize('com_ui_share')}
@@ -432,7 +432,7 @@ export default function SharedLinkButton({
</OGDialogHeader>
<div className="flex w-full flex-col items-center gap-2">
<div className="grid w-full items-center gap-2">
- <Label htmlFor="dialog-confirm-delete" className="text-left text-sm font-medium">
+ <Label htmlFor="dialog-confirm-delete" className="text-start text-sm font-medium">
<Trans
i18nKey="com_ui_delete_confirm_strong"
values={{ title: shareId }}
diff --git a/client/src/components/Conversations/ConvoOptions/SharedLinkCopyButton.tsx b/client/src/components/Conversations/ConvoOptions/SharedLinkCopyButton.tsx
index f8aaeab39e..0a655ed643 100644
--- a/client/src/components/Conversations/ConvoOptions/SharedLinkCopyButton.tsx
+++ b/client/src/components/Conversations/ConvoOptions/SharedLinkCopyButton.tsx
@@ -23,15 +23,15 @@ export default function SharedLinkCopyButton({ sharedLink }: { sharedLink: strin
};
return (
- <div className="relative">
+ /** The URL is an LTR island in either direction, and the copy button sits at its end. */
+ <div className="relative" dir="ltr">
<Input
type="text"
readOnly
- dir="ltr"
value={sharedLink}
aria-label={localize('com_ui_shared_link')}
onFocus={(event) => event.currentTarget.select()}
- className="h-11 rounded-xl bg-surface-secondary pr-12 text-right text-sm text-text-primary"
+ className="bg-surface-secondary text-text-primary h-11 rounded-xl pr-12 text-end text-sm"
data-testid="shared-link-url"
/>
<CopyButton
@@ -40,7 +40,7 @@ export default function SharedLinkCopyButton({ sharedLink }: { sharedLink: strin
label={localize('com_ui_copy_link')}
copiedLabel={localize('com_ui_copied')}
onClick={handleCopy}
- className="absolute right-1.5 top-1/2 size-8 -translate-y-1/2"
+ className="absolute inset-e-1.5 top-1/2 size-8 -translate-y-1/2"
/>
</div>
);
diff --git a/client/src/components/Conversations/ConvoOptions/__tests__/ShareButton.test.tsx b/client/src/components/Conversations/ConvoOptions/__tests__/ShareButton.test.tsx
index f6309ca5b2..f5824aeee6 100644
--- a/client/src/components/Conversations/ConvoOptions/__tests__/ShareButton.test.tsx
+++ b/client/src/components/Conversations/ConvoOptions/__tests__/ShareButton.test.tsx
@@ -139,8 +139,8 @@ describe('ShareButton', () => {
expect(screen.getByLabelText(/com_ui_share_files_description/)).toBeInTheDocument();
const sharedLinkInput = screen.getByTestId('shared-link-url') as HTMLInputElement;
expect(sharedLinkInput.value).toContain('/share/share-1');
- expect(sharedLinkInput).toHaveClass('text-right');
- expect(sharedLinkInput).toHaveAttribute('dir', 'ltr');
+ expect(sharedLinkInput).toHaveClass('text-end');
+ expect(sharedLinkInput.closest('[dir="ltr"]')).not.toBeNull();
expect(screen.getByRole('button', { name: 'com_ui_copy_link' })).toBeInTheDocument();
expect(screen.getByRole('switch', { name: 'com_ui_share_files' })).toBeChecked();
expect(document.querySelector('svg[width="200"]')).toBeInTheDocument();
diff --git a/client/src/components/Conversations/PinnedSection.tsx b/client/src/components/Conversations/PinnedSection.tsx
index ea93a4450a..0059f46876 100644
--- a/client/src/components/Conversations/PinnedSection.tsx
+++ b/client/src/components/Conversations/PinnedSection.tsx
@@ -74,7 +74,7 @@ type PinnedRowDragItem = ConversationDragItem & { key: string };
/** Mirrors a favorite row (h-9, icon, title) so the loading swap keeps height. */
const FavoriteRowSkeleton = () => (
<div className="flex w-full items-center rounded-lg p-2" aria-hidden="true">
- <Skeleton className="mr-2 h-5 w-5 rounded-full" />
+ <Skeleton className="me-2 h-5 w-5 rounded-full" />
<Skeleton className="h-4 w-24" />
</div>
);
@@ -715,7 +715,7 @@ const PinnedSection = ({
>
<div
className={cn(
- 'flex h-8 w-full items-center pr-1',
+ 'flex h-8 w-full items-center pe-1',
isPinOver && canPin && 'bg-surface-nav-selected rounded-lg',
)}
>
diff --git a/client/src/components/Conversations/ProjectBadge.tsx b/client/src/components/Conversations/ProjectBadge.tsx
index 12c20c1a1e..f148b8b9a3 100644
--- a/client/src/components/Conversations/ProjectBadge.tsx
+++ b/client/src/components/Conversations/ProjectBadge.tsx
@@ -12,7 +12,7 @@ function ProjectBadge({ projectId, labelId }: { projectId: string; labelId: stri
return (
<span
- className="text-text-secondary mr-1 flex shrink-0 items-center"
+ className="text-text-secondary me-1 flex shrink-0 items-center"
title={label}
data-testid="convo-project-badge"
>
diff --git a/client/src/components/Conversations/ProjectsSection.tsx b/client/src/components/Conversations/ProjectsSection.tsx
index 4e9422b350..89cdcda15e 100644
--- a/client/src/components/Conversations/ProjectsSection.tsx
+++ b/client/src/components/Conversations/ProjectsSection.tsx
@@ -120,7 +120,7 @@ const ProjectChatsInline = memo(function ProjectChatsInline({
if (isError && conversations.length === 0) {
return (
<div
- className="text-text-secondary flex items-center gap-1 py-1.5 pl-2 text-xs"
+ className="text-text-secondary flex items-center gap-1 py-1.5 ps-2 text-xs"
data-testid={`project-chats-error-${projectId}`}
role="alert"
>
@@ -134,7 +134,7 @@ const ProjectChatsInline = memo(function ProjectChatsInline({
if (conversations.length === 0) {
return (
- <div className="text-text-secondary py-1.5 pl-2 text-xs">
+ <div className="text-text-secondary py-1.5 ps-2 text-xs">
{localize('com_ui_no_project_chats')}
</div>
);
@@ -158,7 +158,7 @@ const ProjectChatsInline = memo(function ProjectChatsInline({
variant="quiet"
size="sm"
onClick={onShowAll}
- className="mt-0.5 ml-1 h-auto rounded-md px-2 py-1 text-xs font-medium"
+ className="ms-1 mt-0.5 h-auto rounded-md px-2 py-1 text-xs font-medium"
>
{localize('com_ui_show_all')}
</Button>
@@ -317,12 +317,12 @@ const ProjectItem = memo(
onClick={() => setExpanded((prev) => !prev)}
aria-expanded={expanded}
aria-label={project.name}
- className="focus-visible:ring-text-primary flex w-full max-w-full min-w-0 flex-1 items-center gap-2 rounded-lg py-1.5 pr-16 pl-1.5 text-left outline-hidden focus-visible:ring-2 focus-visible:ring-inset"
+ className="focus-visible:ring-text-primary flex w-full max-w-full min-w-0 flex-1 items-center gap-2 rounded-lg py-1.5 ps-1.5 pe-16 text-start outline-hidden focus-visible:ring-2 focus-visible:ring-inset"
>
<ChevronRight
className={cn(
- 'text-text-tertiary h-3.5 w-3.5 shrink-0 transition-transform duration-200',
- expanded && 'rotate-90',
+ 'text-text-tertiary h-3.5 w-3.5 shrink-0 transition-transform duration-200 rtl:-scale-x-100',
+ expanded && 'rotate-90 rtl:-rotate-90',
)}
aria-hidden="true"
/>
@@ -333,7 +333,7 @@ const ProjectItem = memo(
/* The 4px between the two controls, and from the row's trailing edge,
that a pinned chat keeps between its unpin badge and its overflow
menu. Each control reveals itself. */
- className="absolute top-1/2 right-1 flex -translate-y-1/2 items-center gap-1"
+ className="absolute inset-e-1 top-1/2 flex -translate-y-1/2 items-center gap-1"
>
<TooltipAnchor
description={localize('com_ui_new_chat_in_project', { name: project.name })}
@@ -357,7 +357,7 @@ const ProjectItem = memo(
setIsOpen={setIsMenuOpen}
className="z-[125]"
minWidth="11rem"
- iconClassName="mr-2 text-text-secondary"
+ iconClassName="me-2 text-text-secondary"
trigger={
<Ariakit.MenuButton
aria-label={localize('com_ui_more_options')}
@@ -370,8 +370,8 @@ const ProjectItem = memo(
/>
</div>
</div>
- <Collapse open={expanded} className="pl-2">
- <div className="pt-1">
+ <Collapse open={expanded}>
+ <div className="ps-2 pt-1">
<ProjectChatsInline
projectId={project._id}
expanded={expanded}
@@ -454,7 +454,7 @@ const ProjectsSection = ({ toggleNav, isAuthenticated }: ProjectsSectionProps) =
const renderProjectsBody = () => {
if (isLoading && projects.length === 0) {
return (
- <div className="flex justify-start py-2 pl-2">
+ <div className="flex justify-start py-2 ps-2">
<Spinner tone="secondary" className="h-4 w-4" />
</div>
);
@@ -512,7 +512,7 @@ const ProjectsSection = ({ toggleNav, isAuthenticated }: ProjectsSectionProps) =
return (
<div className="flex flex-col px-3 pt-3 text-sm">
- <div className="flex h-8 w-full items-center pr-1">
+ <div className="flex h-8 w-full items-center pe-1">
<button
type="button"
onClick={() => {
diff --git a/client/src/components/Conversations/__tests__/Convo.status.spec.tsx b/client/src/components/Conversations/__tests__/Convo.status.spec.tsx
index 4b7ac33920..3e818530b3 100644
--- a/client/src/components/Conversations/__tests__/Convo.status.spec.tsx
+++ b/client/src/components/Conversations/__tests__/Convo.status.spec.tsx
@@ -121,7 +121,7 @@ describe('Conversation row status', () => {
const className = screen.getByTestId('status-ring').getAttribute('class') ?? '';
expect(className).toContain('-top-[0.4375rem]');
- expect(className).toContain('-left-[0.4375rem]');
+ expect(className).toContain('-inset-s-[0.4375rem]');
expect(className).not.toMatch(/\[\d+px\]/);
});
diff --git a/client/src/components/Nav/ExportConversation/ExportModal.tsx b/client/src/components/Nav/ExportConversation/ExportModal.tsx
index 4485684d74..fd64de8554 100644
--- a/client/src/components/Nav/ExportConversation/ExportModal.tsx
+++ b/client/src/components/Nav/ExportConversation/ExportModal.tsx
@@ -89,7 +89,7 @@ export default function ExportModal({
<div className="flex w-full flex-col items-center gap-6">
<div className="grid w-full gap-6 sm:grid-cols-2">
<div className="col-span-1 flex flex-col items-start justify-start gap-2">
- <Label htmlFor="filename" className="text-left text-sm font-medium">
+ <Label htmlFor="filename" className="text-start text-sm font-medium">
{localize('com_nav_export_filename')}
</Label>
<Input
@@ -100,7 +100,7 @@ export default function ExportModal({
/>
</div>
<div className="col-span-1 flex w-full flex-col items-start justify-start gap-2">
- <Label htmlFor="type" className="text-left text-sm font-medium">
+ <Label htmlFor="type" className="text-start text-sm font-medium">
{localize('com_nav_export_type')}
</Label>
<Dropdown
@@ -116,7 +116,7 @@ export default function ExportModal({
<div className="grid w-full gap-6 sm:grid-cols-2">
<div className="col-span-1 flex flex-col items-start justify-start gap-2">
<div className="grid w-full items-center gap-2">
- <Label htmlFor="includeOptions" className="text-left text-sm font-medium">
+ <Label htmlFor="includeOptions" className="text-start text-sm font-medium">
{localize('com_nav_export_include_endpoint_options')}
</Label>
<div className="flex h-[2.5rem] w-full items-center space-x-3">
@@ -140,7 +140,7 @@ export default function ExportModal({
</div>
</div>
<div className="grid w-full items-center gap-2">
- <Label htmlFor="exportBranches" className="text-left text-sm font-medium">
+ <Label htmlFor="exportBranches" className="text-start text-sm font-medium">
{localize('com_nav_export_all_message_branches')}
</Label>
<div className="flex h-[2.5rem] w-full items-center space-x-3">
@@ -164,7 +164,7 @@ export default function ExportModal({
</div>
{type === 'json' ? (
<div className="grid w-full items-center gap-2">
- <Label htmlFor="recursive" className="text-left text-sm font-medium">
+ <Label htmlFor="recursive" className="text-start text-sm font-medium">
{localize('com_nav_export_recursive_or_sequential')}
</Label>
<div className="flex h-[2.5rem] w-full items-center space-x-3">
diff --git a/client/src/components/Nav/Favorites/FavoriteItem.tsx b/client/src/components/Nav/Favorites/FavoriteItem.tsx
index afe4f3edd7..078db0b028 100644
--- a/client/src/components/Nav/Favorites/FavoriteItem.tsx
+++ b/client/src/components/Nav/Favorites/FavoriteItem.tsx
@@ -91,11 +91,11 @@ export default function FavoriteItem(props: FavoriteItemProps) {
const renderIcon = () => {
if (props.type === 'agent') {
- return renderAgentAvatar(props.item, { size: 'icon', className: 'mr-2' });
+ return renderAgentAvatar(props.item, { size: 'icon', className: 'me-2' });
}
if (props.type === 'spec') {
return (
- <div className="mr-2 h-5 w-5">
+ <div className="me-2 h-5 w-5">
<SpecIcon
currentSpec={props.item}
endpointsConfig={props.endpointsConfig}
@@ -105,7 +105,7 @@ export default function FavoriteItem(props: FavoriteItemProps) {
);
}
return (
- <div className="mr-2 h-5 w-5">
+ <div className="me-2 h-5 w-5">
<MinimalIcon
endpoint={props.item.endpoint}
endpointsConfig={props.endpointsConfig}
@@ -142,7 +142,7 @@ export default function FavoriteItem(props: FavoriteItemProps) {
onKeyDown={handleKeyDown}
data-testid="favorite-item"
>
- <div className="flex flex-1 items-center truncate pr-6">
+ <div className="flex flex-1 items-center truncate pe-6">
{renderIcon()}
<span className="truncate">{name}</span>
</div>
@@ -151,7 +151,7 @@ export default function FavoriteItem(props: FavoriteItemProps) {
36px row, which is also where a pinned chat keeps its last control, so
the two row kinds line up. Clicks are swallowed here rather than
reaching the row underneath. */}
- <div className="absolute right-1 flex items-center" onClick={(e) => e.stopPropagation()}>
+ <div className="absolute inset-e-1 flex items-center" onClick={(e) => e.stopPropagation()}>
<UnpinButton
testId="favorite-unpin-button"
onClick={handleRemove}
diff --git a/client/src/components/Nav/SearchBar.tsx b/client/src/components/Nav/SearchBar.tsx
index 041c45035f..30be4463ee 100644
--- a/client/src/components/Nav/SearchBar.tsx
+++ b/client/src/components/Nav/SearchBar.tsx
@@ -166,7 +166,7 @@ const SearchBar = forwardRef((props: SearchBarProps, ref: React.Ref<HTMLDivEleme
*
* No edge on focus, by request. What marks the focused field is its caret and
* the chord appearing in the trailing slot. */
- className="group bg-surface-search text-text-primary theme-field-fill:border theme-field-fill:border-border-control flex h-9 min-w-0 flex-1 cursor-text items-center gap-2 rounded-lg pr-1 pl-2.5"
+ className="group bg-surface-search text-text-primary theme-field-fill:border theme-field-fill:border-border-control flex h-9 min-w-0 flex-1 cursor-text items-center gap-2 rounded-lg ps-2.5 pe-1"
>
<Search aria-hidden="true" className="text-text-secondary size-4 shrink-0" />
<input
diff --git a/client/src/components/Nav/Settings/Dialog.tsx b/client/src/components/Nav/Settings/Dialog.tsx
index c7ed761cc7..beb54d49c8 100644
--- a/client/src/components/Nav/Settings/Dialog.tsx
+++ b/client/src/components/Nav/Settings/Dialog.tsx
@@ -86,10 +86,10 @@ export default function SettingsDialog({ open, onOpenChange }: TDialogProps) {
<button
type="button"
onClick={() => setMobileDetail(false)}
- className="text-text-primary hover:bg-surface-hover focus:ring-border-xheavy -ml-1 flex items-center gap-1 rounded-lg p-1 transition-colors focus:ring-2 focus:outline-hidden"
+ className="text-text-primary hover:bg-surface-hover focus:ring-border-xheavy -ms-1 flex items-center gap-1 rounded-lg p-1 transition-colors focus:ring-2 focus:outline-hidden"
aria-label={localize('com_ui_back')}
>
- <ChevronLeft className="h-5 w-5" aria-hidden="true" />
+ <ChevronLeft className="h-5 w-5 rtl:-scale-x-100" aria-hidden="true" />
<span className="text-lg font-medium">
{activeMeta ? localize(activeMeta.labelKey) : localize('com_nav_settings')}
</span>
@@ -133,7 +133,7 @@ export default function SettingsDialog({ open, onOpenChange }: TDialogProps) {
/>
)}
{showContent && (
- <div className={cn('flex-1 overflow-y-auto', !isSmallScreen && 'pr-1')}>
+ <div className={cn('flex-1 overflow-y-auto', !isSmallScreen && 'pe-1')}>
{searching ? (
<Content activeTab={effectiveTab} query={query} ctx={ctx} />
) : (
diff --git a/client/src/components/Nav/Settings/Sidebar.tsx b/client/src/components/Nav/Settings/Sidebar.tsx
index 04579db770..fab2f9fbcb 100644
--- a/client/src/components/Nav/Settings/Sidebar.tsx
+++ b/client/src/components/Nav/Settings/Sidebar.tsx
@@ -38,7 +38,7 @@ export default function Sidebar({
>
<div className="relative shrink-0">
<Search
- className="text-text-tertiary pointer-events-none absolute top-1/2 left-2 h-4 w-4 -translate-y-1/2"
+ className="text-text-tertiary pointer-events-none absolute inset-s-2 top-1/2 h-4 w-4 -translate-y-1/2"
aria-hidden="true"
/>
<input
@@ -54,14 +54,14 @@ export default function Sidebar({
}}
placeholder={localize('com_ui_settings_search_placeholder')}
aria-label={localize('com_ui_settings_search_placeholder')}
- className="bg-surface-secondary text-text-primary w-full rounded-lg py-2 pr-8 pl-8 text-sm focus-visible:outline-hidden"
+ className="bg-surface-secondary text-text-primary w-full rounded-lg py-2 ps-8 pe-8 text-sm focus-visible:outline-hidden"
/>
{query.length > 0 && (
<button
type="button"
onClick={() => onQueryChange('')}
aria-label={localize('com_ui_clear_search')}
- className="text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary absolute top-1/2 right-1.5 -translate-y-1/2 rounded-md p-1 transition-colors focus-visible:ring-2 focus-visible:outline-hidden"
+ className="text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary absolute inset-e-1.5 top-1/2 -translate-y-1/2 rounded-md p-1 transition-colors focus-visible:ring-2 focus-visible:outline-hidden"
>
<X className="h-4 w-4" aria-hidden="true" />
</button>
@@ -84,10 +84,13 @@ export default function Sidebar({
>
<span className="flex min-w-0 items-center gap-2 [&>svg]:shrink-0">
{tab.icon}
- <span className="min-w-0 text-left break-words">{localize(tab.labelKey)}</span>
+ <span className="min-w-0 text-start break-words">{localize(tab.labelKey)}</span>
</span>
{showChevron && (
- <ChevronRight className="text-text-tertiary h-4 w-4 shrink-0" aria-hidden="true" />
+ <ChevronRight
+ className="text-text-tertiary h-4 w-4 shrink-0 rtl:-scale-x-100"
+ aria-hidden="true"
+ />
)}
</Tabs.Trigger>
))}
diff --git a/client/src/components/Nav/SettingsTabs/About/About.tsx b/client/src/components/Nav/SettingsTabs/About/About.tsx
index cae1413921..13eca3be6e 100644
--- a/client/src/components/Nav/SettingsTabs/About/About.tsx
+++ b/client/src/components/Nav/SettingsTabs/About/About.tsx
@@ -40,7 +40,7 @@ function Row({ label, value }: { label: string; value: string }) {
return (
<div className="flex items-center justify-between gap-4 py-2.5 first:pt-0 last:pb-0">
<dt className="text-text-secondary">{label}</dt>
- <dd className="break-all text-right font-mono text-xs text-text-primary">{value}</dd>
+ <dd className="text-text-primary text-end font-mono text-xs break-all">{value}</dd>
</div>
);
}
@@ -81,8 +81,8 @@ function About() {
}, [diagnosticsBlob]);
return (
- <div className="flex flex-col text-sm text-text-primary">
- <dl className="flex flex-col divide-y divide-border-light">
+ <div className="text-text-primary flex flex-col text-sm">
+ <dl className="divide-border-light flex flex-col divide-y">
<Row label={localize('com_nav_about_version')} value={version} />
<Row
label={localize('com_nav_about_commit')}
@@ -98,15 +98,15 @@ function About() {
/>
</dl>
- <div className="mt-4 flex flex-col items-start gap-3 border-t border-border-light pt-4 sm:flex-row sm:items-center sm:justify-between sm:gap-4">
- <p className="min-w-0 flex-1 text-xs text-text-secondary">
+ <div className="border-border-light mt-4 flex flex-col items-start gap-3 border-t pt-4 sm:flex-row sm:items-center sm:justify-between sm:gap-4">
+ <p className="text-text-secondary min-w-0 flex-1 text-xs">
{localize('com_nav_about_diagnostics_description')}
</p>
<CopyButton
isCopied={isCopied}
onClick={handleCopy}
label={localize('com_nav_about_diagnostics_copy')}
- className="ml-0 shrink-0 gap-2 self-start rounded-lg border border-border-light bg-surface-secondary px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-surface-tertiary sm:self-auto"
+ className="border-border-light bg-surface-secondary text-text-primary hover:bg-surface-tertiary ms-0 shrink-0 gap-2 self-start rounded-lg border px-3 py-1.5 text-xs font-medium sm:self-auto"
/>
<span className="sr-only" role="status" aria-live="polite" aria-atomic="true">
{isCopied ? localize('com_ui_copied') : ''}
diff --git a/client/src/components/Nav/SettingsTabs/Account/Avatar.tsx b/client/src/components/Nav/SettingsTabs/Account/Avatar.tsx
index 30b7658a1e..9fd11352c8 100644
--- a/client/src/components/Nav/SettingsTabs/Account/Avatar.tsx
+++ b/client/src/components/Nav/SettingsTabs/Account/Avatar.tsx
@@ -191,7 +191,7 @@ function Avatar() {
<span>{localize('com_nav_profile_picture')}</span>
<OGDialogTrigger asChild>
<Button variant="outline">
- <FileImage className="mr-2 flex w-[1.375rem] items-center" aria-hidden="true" />
+ <FileImage className="me-2 flex w-[1.375rem] items-center" aria-hidden="true" />
<span>{localize('com_nav_change_picture')}</span>
</Button>
</OGDialogTrigger>
@@ -335,9 +335,9 @@ function Avatar() {
disabled={isUploading}
>
{isUploading ? (
- <Spinner className="icon-sm mr-2" />
+ <Spinner className="icon-sm me-2" />
) : (
- <Upload className="mr-2 h-4 w-4" aria-hidden="true" />
+ <Upload className="me-2 h-4 w-4" aria-hidden="true" />
)}
{localize('com_ui_upload')}
</Button>
diff --git a/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsx b/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsx
index 5f85eecfc4..61e1fddc10 100644
--- a/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsx
+++ b/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsx
@@ -185,9 +185,9 @@ const BackupCodesItem: React.FC = () => {
size="wide"
>
{isLoading ? (
- <Spinner className="mr-2" />
+ <Spinner className="me-2" />
) : (
- <RefreshCcw className="mr-2 h-4 w-4" aria-hidden="true" />
+ <RefreshCcw className="me-2 h-4 w-4" aria-hidden="true" />
)}
{isLoading
? localize('com_ui_regenerating')
@@ -203,7 +203,7 @@ const BackupCodesItem: React.FC = () => {
variant="default"
size="wide"
>
- {isLoading && <Spinner className="mr-2" />}
+ {isLoading && <Spinner className="me-2" />}
{localize('com_ui_regenerate_backup')}
</Button>
</div>
diff --git a/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsx b/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsx
index 905d11515e..8f329cbcc7 100644
--- a/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsx
+++ b/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsx
@@ -192,12 +192,12 @@ const renderDeleteButton = (
{isLocked ? (
<>
<LockIcon className="size-5" aria-hidden="true" />
- <span className="ml-2">{localize('com_ui_locked')}</span>
+ <span className="ms-2">{localize('com_ui_locked')}</span>
</>
) : (
<>
<Trash className="size-5" aria-hidden="true" />
- <span className="ml-2">{localize('com_nav_delete_account_button')}</span>
+ <span className="ms-2">{localize('com_nav_delete_account_button')}</span>
</>
)}
</>
diff --git a/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx b/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx
index 58ce3e477e..c9d1d53d7f 100644
--- a/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx
+++ b/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx
@@ -22,7 +22,7 @@ export default function DisplayUsernameMessages() {
id="UsernameDisplay"
checked={UsernameDisplay}
onCheckedChange={handleCheckedChange}
- className="ml-4"
+ className="ms-4"
data-testid="UsernameDisplay"
aria-labelledby="user-name-display-label"
/>
diff --git a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsx b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsx
index bd36029ff7..dab4863c18 100644
--- a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsx
+++ b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsx
@@ -66,7 +66,7 @@ export const DisablePhase: React.FC<DisablePhaseProps> = ({ onDisable, isDisabli
disabled={isDisabling || !(useBackup ? isBackupCode(token) : token.length === 6)}
className="w-full rounded-xl px-6 py-3 transition-all"
>
- {isDisabling && <Spinner className="mr-2" />}
+ {isDisabling && <Spinner className="me-2" />}
{isDisabling ? localize('com_ui_disabling') : localize('com_ui_2fa_disable')}
</Button>
<Button type="button" variant="link" onClick={() => setUseBackup(!useBackup)} size="bare">
diff --git a/client/src/components/Nav/SettingsTabs/ApiKeys/ApiKeys.tsx b/client/src/components/Nav/SettingsTabs/ApiKeys/ApiKeys.tsx
index 7777e8f92c..3dcd6717d6 100644
--- a/client/src/components/Nav/SettingsTabs/ApiKeys/ApiKeys.tsx
+++ b/client/src/components/Nav/SettingsTabs/ApiKeys/ApiKeys.tsx
@@ -45,7 +45,7 @@ export default function ApiKeys() {
className="text-text-primary w-11/12 max-w-2xl shadow-2xl"
aria-describedby={undefined}
>
- <OGDialogHeader className="space-y-0 pr-8 text-left">
+ <OGDialogHeader className="space-y-0 pe-8 text-start">
<div className="flex items-center gap-1.5">
<OGDialogTitle>{localize('com_ui_agent_api_keys')}</OGDialogTitle>
<InfoHoverCard text={localize('com_ui_api_keys_description')} />
@@ -54,7 +54,7 @@ export default function ApiKeys() {
<List onCreate={() => setCreateOpen(true)} />
<div className="flex items-center gap-2">
<Admin />
- <Button size="sm" className="ml-auto gap-1.5" onClick={() => setCreateOpen(true)}>
+ <Button size="sm" className="ms-auto gap-1.5" onClick={() => setCreateOpen(true)}>
<Plus className="h-4 w-4" aria-hidden="true" />
{localize('com_ui_create_api_key')}
</Button>
diff --git a/client/src/components/Nav/SettingsTabs/ApiKeys/DeleteKeyDialog.tsx b/client/src/components/Nav/SettingsTabs/ApiKeys/DeleteKeyDialog.tsx
index 04fbfe7b7d..5a901f01ae 100644
--- a/client/src/components/Nav/SettingsTabs/ApiKeys/DeleteKeyDialog.tsx
+++ b/client/src/components/Nav/SettingsTabs/ApiKeys/DeleteKeyDialog.tsx
@@ -43,7 +43,7 @@ export default function DeleteKeyDialog({
title={localize('com_ui_delete_api_key')}
className="max-w-[28.125rem]"
main={
- <div className="space-y-3 text-left">
+ <div className="space-y-3 text-start">
<p className="text-text-primary text-sm">
{localize('com_ui_api_key_delete_confirm', { 0: name })}
</p>
diff --git a/client/src/components/Nav/SettingsTabs/Chat/AdvancedPrompts.tsx b/client/src/components/Nav/SettingsTabs/Chat/AdvancedPrompts.tsx
index f77bffba79..8ba669ec4d 100644
--- a/client/src/components/Nav/SettingsTabs/Chat/AdvancedPrompts.tsx
+++ b/client/src/components/Nav/SettingsTabs/Chat/AdvancedPrompts.tsx
@@ -37,7 +37,7 @@ export default function AdvancedPrompts() {
id={rootId}
checked={isAdvanced}
onCheckedChange={handleChange}
- className="ml-4"
+ className="ms-4"
data-testid="advancedPrompts"
aria-labelledby={labelId}
/>
diff --git a/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsx b/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsx
index 9c77a8aa77..c453e66f4f 100644
--- a/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsx
+++ b/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsx
@@ -25,7 +25,7 @@ export const ForkSettings = () => {
id="rememberDefaultFork"
checked={remember}
onCheckedChange={setRemember}
- className="ml-4"
+ className="ms-4"
data-testid="rememberDefaultFork"
aria-labelledby="remember-default-fork-label"
/>
@@ -66,7 +66,7 @@ export const ForkSettings = () => {
id="splitAtTarget"
checked={splitAtTarget}
onCheckedChange={setSplitAtTarget}
- className="ml-4"
+ className="ms-4"
data-testid="splitAtTarget"
aria-labelledby="split-at-target-label"
/>
diff --git a/client/src/components/Nav/SettingsTabs/Chat/ImageResize.tsx b/client/src/components/Nav/SettingsTabs/Chat/ImageResize.tsx
index 4bb436cae9..84fab0753f 100644
--- a/client/src/components/Nav/SettingsTabs/Chat/ImageResize.tsx
+++ b/client/src/components/Nav/SettingsTabs/Chat/ImageResize.tsx
@@ -37,7 +37,7 @@ export default function ImageResize() {
onCheckedChange={setUserPreference}
disabled={isEnforced || !isSupported || isConfigUnavailable || isConfigPending}
aria-busy={isConfigPending}
- className="ml-4"
+ className="ms-4"
data-testid="clientImageResize"
aria-labelledby={labelId}
/>
diff --git a/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsx b/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsx
index 3c5326c551..08eaf37b58 100644
--- a/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsx
+++ b/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsx
@@ -28,7 +28,7 @@ export default function SaveBadgesState({
id="saveBadgesState"
checked={saveBadgesState}
onCheckedChange={handleCheckedChange}
- className="ml-4"
+ className="ms-4"
data-testid="saveBadgesState"
aria-label={localize('com_nav_save_badges_state')}
/>
diff --git a/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsx b/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsx
index 905efcc98c..0b7d3a1607 100644
--- a/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsx
+++ b/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsx
@@ -28,7 +28,7 @@ export default function SaveDraft({
id="showThinking"
checked={showThinking}
onCheckedChange={handleCheckedChange}
- className="ml-4"
+ className="ms-4"
data-testid="showThinking"
aria-label={localize('com_nav_show_thinking')}
/>
diff --git a/client/src/components/Nav/SettingsTabs/Data/AnalyticsConsent.tsx b/client/src/components/Nav/SettingsTabs/Data/AnalyticsConsent.tsx
index 617520e7ea..68b39f4456 100644
--- a/client/src/components/Nav/SettingsTabs/Data/AnalyticsConsent.tsx
+++ b/client/src/components/Nav/SettingsTabs/Data/AnalyticsConsent.tsx
@@ -26,7 +26,7 @@ export default function AnalyticsConsentToggle() {
<Switch
checked={consent === 'granted'}
onCheckedChange={(checked: boolean) => setConsent(checked ? 'granted' : 'denied')}
- className="ml-4"
+ className="ms-4"
aria-labelledby={labelId}
aria-describedby={descriptionId}
data-testid="analytics-consent-switch"
diff --git a/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsx b/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsx
index 3f78c20104..c970c784ab 100644
--- a/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsx
+++ b/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsx
@@ -60,7 +60,7 @@ export const DeleteCache = ({ disabled = false }: { disabled?: boolean }) => {
title={localize('com_nav_confirm_clear')}
className="max-w-[28.125rem]"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
{localize('com_nav_clear_cache_confirm_message')}
</Label>
}
diff --git a/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsx b/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsx
index 6d3c31c9bb..2ac0e7b197 100644
--- a/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsx
+++ b/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsx
@@ -119,12 +119,12 @@ function ImportConversations() {
>
{isUploading ? (
<>
- <Spinner className="mr-1 w-4" />
+ <Spinner className="me-1 w-4" />
<span>{localize('com_ui_importing')}</span>
</>
) : (
<>
- <Import className="mr-1 flex h-4 w-4 items-center stroke-1" aria-hidden="true" />
+ <Import className="me-1 flex h-4 w-4 items-center stroke-1" aria-hidden="true" />
<span>{localize('com_ui_import')}</span>
</>
)}
diff --git a/client/src/components/Nav/SettingsTabs/Data/RevokeKeys.tsx b/client/src/components/Nav/SettingsTabs/Data/RevokeKeys.tsx
index 3964085450..e8fec9fcff 100644
--- a/client/src/components/Nav/SettingsTabs/Data/RevokeKeys.tsx
+++ b/client/src/components/Nav/SettingsTabs/Data/RevokeKeys.tsx
@@ -55,7 +55,7 @@ export const RevokeKeys = ({
title={localize('com_ui_revoke_keys')}
className="max-w-[28.125rem]"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
{localize('com_ui_revoke_keys_confirm')}
</Label>
}
diff --git a/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx b/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx
index 289f3e371c..10e071c66f 100644
--- a/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx
+++ b/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx
@@ -333,7 +333,7 @@ export default function SharedLinks() {
className="flex w-full flex-col items-center gap-2"
>
<div className="grid w-full items-center gap-2">
- <Label htmlFor="dialog-confirm-delete" className="text-left text-sm font-medium">
+ <Label htmlFor="dialog-confirm-delete" className="text-start text-sm font-medium">
<Trans
i18nKey="com_ui_delete_confirm_strong"
values={{ title: deleteRow?.title }}
diff --git a/client/src/components/Nav/SettingsTabs/Integrations/LangfuseConnection.tsx b/client/src/components/Nav/SettingsTabs/Integrations/LangfuseConnection.tsx
index d98c00ac5c..0287214e84 100644
--- a/client/src/components/Nav/SettingsTabs/Integrations/LangfuseConnection.tsx
+++ b/client/src/components/Nav/SettingsTabs/Integrations/LangfuseConnection.tsx
@@ -408,7 +408,7 @@ export default function LangfuseConnection() {
</div>
<div
data-testid="langfuse-connection-status"
- className={`ml-auto flex max-w-full shrink-0 items-start justify-end gap-1.5 text-right text-xs sm:max-w-[50%] ${connectionStatusTextClass}`}
+ className={`ms-auto flex max-w-full shrink-0 items-start justify-end gap-1.5 text-end text-xs sm:max-w-[50%] ${connectionStatusTextClass}`}
aria-live="polite"
title={connectionStatusTitle}
>
@@ -442,7 +442,7 @@ export default function LangfuseConnection() {
{secretConfigured && !isEditingPublicKey && (
<button
type="button"
- className="border-border-light hover:border-border-medium focus-visible:ring-ring-primary w-full rounded-lg border px-3 py-2 text-left focus-visible:ring-2 focus-visible:outline-hidden"
+ className="border-border-light hover:border-border-medium focus-visible:ring-ring-primary w-full rounded-lg border px-3 py-2 text-start focus-visible:ring-2 focus-visible:outline-hidden"
aria-label={`${localize('com_ui_edit')} ${localize('com_ui_langfuse_public_key')}`}
disabled={busy}
onClick={() => setIsEditingPublicKey(true)}
@@ -486,7 +486,7 @@ export default function LangfuseConnection() {
{secretConfigured && !isEditingSecretKey && (
<button
type="button"
- className="border-border-light hover:border-border-medium focus-visible:ring-ring-primary w-full rounded-lg border px-3 py-2 text-left focus-visible:ring-2 focus-visible:outline-hidden"
+ className="border-border-light hover:border-border-medium focus-visible:ring-ring-primary w-full rounded-lg border px-3 py-2 text-start focus-visible:ring-2 focus-visible:outline-hidden"
aria-label={`${localize('com_ui_edit')} ${localize('com_ui_langfuse_secret_key')}`}
disabled={busy}
onClick={() => setIsEditingSecretKey(true)}
diff --git a/client/src/components/Nav/SettingsTabs/ProviderKeys/ProviderKeys.tsx b/client/src/components/Nav/SettingsTabs/ProviderKeys/ProviderKeys.tsx
index f61eff9799..d1ea481a04 100644
--- a/client/src/components/Nav/SettingsTabs/ProviderKeys/ProviderKeys.tsx
+++ b/client/src/components/Nav/SettingsTabs/ProviderKeys/ProviderKeys.tsx
@@ -45,7 +45,7 @@ export default function ProviderKeys() {
className="text-text-primary focus-visible:ring-text-primary w-11/12 max-w-2xl shadow-2xl focus-visible:ring-2 focus-visible:ring-inset"
aria-describedby={undefined}
>
- <OGDialogHeader className="space-y-0 pr-8 text-left">
+ <OGDialogHeader className="space-y-0 pe-8 text-start">
<div className="flex items-center gap-1.5">
<OGDialogTitle>{localize('com_ui_settings_label_provider_api_keys')}</OGDialogTitle>
<InfoHoverCard text={localize('com_ui_provider_api_keys_description')} />
diff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsx
index 5b93dda1dd..481aca2ba3 100644
--- a/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsx
+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsx
@@ -60,7 +60,7 @@ export default function AutoSendTextSelector() {
id="autoSendTextToggle"
checked={isEnabled}
onCheckedChange={handleToggle}
- className="ml-4"
+ className="ms-4"
data-testid="autoSendTextToggle"
aria-labelledby={labelId}
disabled={!speechToText}
@@ -86,7 +86,7 @@ export default function AutoSendTextSelector() {
min={0}
max={60}
step={1}
- className="ml-4 flex h-4 w-24"
+ className="ms-4 flex h-4 w-24"
disabled={!speechToText || !isEnabled}
aria-labelledby="auto-send-delay-label"
/>
diff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsx
index 19fe9bcc7d..af0218659c 100755
--- a/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsx
+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsx
@@ -26,7 +26,7 @@ export default function DecibelSelector() {
min={-100}
max={-30}
step={1}
- className="ml-4 flex h-4 w-24"
+ className="ms-4 flex h-4 w-24"
disabled={!speechToText}
aria-labelledby="decibel-selector-label"
/>
diff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsx
index d32fea0a8a..a796d6f294 100755
--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsx
+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsx
@@ -26,7 +26,7 @@ export default function DecibelSelector() {
min={0.1}
max={2}
step={0.1}
- className="ml-4 flex h-4 w-24"
+ className="ms-4 flex h-4 w-24"
disabled={!textToSpeech}
aria-labelledby="playback-rate-label"
/>
diff --git a/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsx b/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsx
index db2af7ab30..509bd7dc8f 100644
--- a/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsx
+++ b/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsx
@@ -59,7 +59,7 @@ const RecoilToggle: React.FC<
checked={switchState}
onCheckedChange={handleCheckedChange}
disabled={disabled}
- className="ml-4"
+ className="ms-4"
data-testid={switchId}
aria-labelledby={labelId}
/>
@@ -103,7 +103,7 @@ const JotaiToggle: React.FC<
checked={switchState}
onCheckedChange={handleCheckedChange}
disabled={disabled}
- className="ml-4"
+ className="ms-4"
data-testid={switchId}
aria-labelledby={labelId}
/>
diff --git a/client/src/components/Nav/ShortcutRecorder.tsx b/client/src/components/Nav/ShortcutRecorder.tsx
index 5677b0133f..682fdfa225 100644
--- a/client/src/components/Nav/ShortcutRecorder.tsx
+++ b/client/src/components/Nav/ShortcutRecorder.tsx
@@ -216,7 +216,7 @@ export function RecorderInfo({
return (
<div
id={`${ownerId}-recorder-hint`}
- className="flex flex-wrap items-center justify-end gap-x-2 gap-y-1 pl-1 text-[11.5px]"
+ className="flex flex-wrap items-center justify-end gap-x-2 gap-y-1 ps-1 text-[11.5px]"
>
<span className="text-text-secondary">
{localize('com_shortcut_recorder_conflict_prefix')}{' '}
@@ -243,7 +243,7 @@ export function RecorderInfo({
}
return (
- <div id={`${ownerId}-recorder-hint`} className="flex items-center justify-end gap-2 pl-1">
+ <div id={`${ownerId}-recorder-hint`} className="flex items-center justify-end gap-2 ps-1">
<span
className={cn(
'text-[11.5px]',
diff --git a/client/src/components/SidePanel/Agents/ActionsInput.tsx b/client/src/components/SidePanel/Agents/ActionsInput.tsx
index 67abc26583..de72b542a9 100644
--- a/client/src/components/SidePanel/Agents/ActionsInput.tsx
+++ b/client/src/components/SidePanel/Agents/ActionsInput.tsx
@@ -305,8 +305,8 @@ export default function ActionsInput({
<OGDialog open={isSchemaDialogOpen} onOpenChange={setIsSchemaDialogOpen}>
<OGDialogContent className="flex h-[85vh] max-h-[85vh] w-11/12 max-w-5xl flex-col gap-3 p-5">
- <OGDialogHeader className="space-y-0 pr-10">
- <OGDialogTitle className="text-left text-sm font-medium">
+ <OGDialogHeader className="space-y-0 pe-10">
+ <OGDialogTitle className="text-start text-sm font-medium">
{localize('com_ui_schema')}
</OGDialogTitle>
<OGDialogDescription className="sr-only">
diff --git a/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx b/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx
index 5c3374f481..48aae7dfb2 100644
--- a/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx
+++ b/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx
@@ -18,7 +18,7 @@ export default function ActionsTableSkeleton() {
{HEADER_KEYS.map((key) => (
<th
key={key}
- className="text-text-secondary text-2xs py-2 pr-3 text-left font-medium tracking-wide uppercase"
+ className="text-text-secondary text-2xs py-2 pe-3 text-start font-medium tracking-wide uppercase"
>
{localize(key)}
</th>
@@ -28,13 +28,13 @@ export default function ActionsTableSkeleton() {
<tbody>
{Array.from({ length: SKELETON_ROWS }, (_, row) => (
<tr key={row} className="border-border-light border-b last:border-0">
- <td className="py-2.5 pr-3">
+ <td className="py-2.5 pe-3">
<Skeleton className="h-4 w-24 rounded" />
</td>
- <td className="py-2.5 pr-3">
+ <td className="py-2.5 pe-3">
<Skeleton className="h-5 w-12 rounded-md" />
</td>
- <td className="py-2.5 pr-3">
+ <td className="py-2.5 pe-3">
<Skeleton className="h-4 w-32 rounded" />
</td>
</tr>
diff --git a/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx b/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx
index cee3104beb..6a8e67b248 100644
--- a/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx
+++ b/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx
@@ -21,7 +21,7 @@ export default function DataTable<TData, TValue>({ columns, data }: DataTablePro
{headerGroup.headers.map((header) => (
<th
key={header.id}
- className="border-border-light bg-surface-primary text-text-secondary text-2xs sticky top-0 z-10 border-b py-2 pr-3 text-left font-medium tracking-wide uppercase"
+ className="border-border-light bg-surface-primary text-text-secondary text-2xs sticky top-0 z-10 border-b py-2 pe-3 text-start font-medium tracking-wide uppercase"
>
{header.isPlaceholder
? null
@@ -38,7 +38,7 @@ export default function DataTable<TData, TValue>({ columns, data }: DataTablePro
className="border-border-light hover:bg-surface-secondary border-b transition-colors last:border-0"
>
{row.getVisibleCells().map((cell) => (
- <td key={cell.id} className="py-2 pr-3 align-middle">
+ <td key={cell.id} className="py-2 pe-3 align-middle">
{flexRender(cell.column.columnDef.cell, cell.getContext())}
</td>
))}
diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx
index b704060b3e..f04e084eb7 100644
--- a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx
@@ -42,7 +42,7 @@ export default function AdvancedPanel() {
aria-label={localize('com_ui_back_to_builder')}
className="border-border-light hover:bg-surface-secondary shrink-0 rounded-xl border"
>
- <ChevronLeft className="h-5 w-5" strokeWidth={1.75} aria-hidden="true" />
+ <ChevronLeft className="h-5 w-5 rtl:-scale-x-100" strokeWidth={1.75} aria-hidden="true" />
</Button>
<h2 className="text-text-primary text-center text-base font-semibold">
{localize('com_ui_advanced_settings')}
diff --git a/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx b/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx
index 9ace6e1766..443283a7db 100644
--- a/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx
@@ -171,7 +171,7 @@ const AgentHandoffs: React.FC<AgentHandoffsProps> = ({ field, currentAgentId })
</AgentRow>
{isExpanded && (
- <div className="border-border-light ml-1.5 flex flex-col gap-2.5 border-l pl-3">
+ <div className="border-border-light ms-1.5 flex flex-col gap-2.5 border-s ps-3">
<div>
<Label
variant="secondary"
diff --git a/client/src/components/SidePanel/Agents/AgentPanel.tsx b/client/src/components/SidePanel/Agents/AgentPanel.tsx
index 2ff258593c..d844f7e1c9 100644
--- a/client/src/components/SidePanel/Agents/AgentPanel.tsx
+++ b/client/src/components/SidePanel/Agents/AgentPanel.tsx
@@ -1006,7 +1006,7 @@ export default function AgentPanel() {
disabled={agentQuery.isInitialLoading}
aria-label={localize('com_ui_create_new_agent')}
>
- <Plus className="mr-1 h-4 w-4" aria-hidden="true" />
+ <Plus className="me-1 h-4 w-4" aria-hidden="true" />
{localize('com_ui_create_new_agent')}
</Button>
<Button
diff --git a/client/src/components/SidePanel/Agents/Background.tsx b/client/src/components/SidePanel/Agents/Background.tsx
index bca703b843..75eb45bb5d 100644
--- a/client/src/components/SidePanel/Agents/Background.tsx
+++ b/client/src/components/SidePanel/Agents/Background.tsx
@@ -82,7 +82,7 @@ export default function Background({ toolIds, switchId, labelKey, infoKey }: Pro
id={switchId}
checked={enabled}
onCheckedChange={handleChange}
- className="ml-4"
+ className="ms-4"
data-testid={switchId}
aria-label={localize(labelKey)}
/>
diff --git a/client/src/components/SidePanel/Agents/Code/Background.tsx b/client/src/components/SidePanel/Agents/Code/Background.tsx
index 4efa84d8ad..dd08f46e75 100644
--- a/client/src/components/SidePanel/Agents/Code/Background.tsx
+++ b/client/src/components/SidePanel/Agents/Code/Background.tsx
@@ -71,7 +71,7 @@ export default function Background() {
id="code-background-tools"
checked={enabled}
onCheckedChange={handleChange}
- className="ml-4"
+ className="ms-4"
data-testid="code-background-tools"
aria-label={localize('com_ui_code_background')}
/>
diff --git a/client/src/components/SidePanel/Agents/Code/Settings.tsx b/client/src/components/SidePanel/Agents/Code/Settings.tsx
index b5c1b51bbf..3fff7e75c1 100644
--- a/client/src/components/SidePanel/Agents/Code/Settings.tsx
+++ b/client/src/components/SidePanel/Agents/Code/Settings.tsx
@@ -170,7 +170,7 @@ export default function CodeSettings() {
id="stateful-code-sessions"
checked={enabled && codeEnabled === true}
onCheckedChange={handleChange}
- className="ml-4"
+ className="ms-4"
data-testid="stateful-code-sessions"
disabled={codeEnabled !== true}
aria-label={localize('com_ui_stateful_sessions')}
@@ -202,7 +202,7 @@ export default function CodeSettings() {
</div>
))}
{enabled && codeEnabled === true && (
- <div className="space-y-2 pl-1">
+ <div className="space-y-2 ps-1">
{executionEnvironments.length > 0 && (
<>
<label
diff --git a/client/src/components/SidePanel/Agents/DeleteButton.tsx b/client/src/components/SidePanel/Agents/DeleteButton.tsx
index 8d18335a47..3216be0731 100644
--- a/client/src/components/SidePanel/Agents/DeleteButton.tsx
+++ b/client/src/components/SidePanel/Agents/DeleteButton.tsx
@@ -116,7 +116,7 @@ function DeleteButton({
<>
<div className="flex w-full flex-col items-center gap-2">
<div className="grid w-full items-center gap-2">
- <Label htmlFor="delete-agent" className="text-left text-sm font-medium">
+ <Label htmlFor="delete-agent" className="text-start text-sm font-medium">
{localize('com_ui_delete_agent_confirm')}
</Label>
</div>
diff --git a/client/src/components/SidePanel/Agents/ImageVision.tsx b/client/src/components/SidePanel/Agents/ImageVision.tsx
index fb7710f74b..afb868c5af 100644
--- a/client/src/components/SidePanel/Agents/ImageVision.tsx
+++ b/client/src/components/SidePanel/Agents/ImageVision.tsx
@@ -19,7 +19,7 @@ export default function ImageVision() {
{...field}
checked={field.value}
onCheckedChange={field.onChange}
- className="relative float-left mr-2 inline-flex cursor-pointer"
+ className="relative float-start me-2 inline-flex cursor-pointer"
value={field.value?.toString()}
aria-labelledby="image-vision-label"
/>
diff --git a/client/src/components/SidePanel/Agents/MCPToolItem.tsx b/client/src/components/SidePanel/Agents/MCPToolItem.tsx
index 1a75eebae0..36ee54961a 100644
--- a/client/src/components/SidePanel/Agents/MCPToolItem.tsx
+++ b/client/src/components/SidePanel/Agents/MCPToolItem.tsx
@@ -68,14 +68,14 @@ export default function MCPToolItem({
return (
<div className="overflow-hidden rounded-lg">
- <div className="hover:bg-surface-secondary flex items-center gap-1 rounded-lg pr-1 transition-colors">
+ <div className="hover:bg-surface-secondary flex items-center gap-1 rounded-lg pe-1 transition-colors">
<button
type="button"
onClick={onToggleSelect}
aria-pressed={isSelected}
aria-label={tool.metadata.name}
className={cn(
- 'flex min-w-0 flex-1 items-center gap-2.5 rounded-lg p-2 text-left',
+ 'flex min-w-0 flex-1 items-center gap-2.5 rounded-lg p-2 text-start',
'focus-visible:ring-ring-primary focus:outline-hidden focus-visible:ring-2',
)}
>
diff --git a/client/src/components/SidePanel/Agents/ModelPanel.tsx b/client/src/components/SidePanel/Agents/ModelPanel.tsx
index fad80f8e91..83715c4e7b 100644
--- a/client/src/components/SidePanel/Agents/ModelPanel.tsx
+++ b/client/src/components/SidePanel/Agents/ModelPanel.tsx
@@ -149,7 +149,7 @@ export default function ModelPanel({
aria-label={localize('com_ui_back_to_builder')}
className="text-text-secondary hover:bg-surface-secondary shrink-0 rounded-xl"
>
- <ChevronLeft className="h-5 w-5" strokeWidth={1.75} aria-hidden="true" />
+ <ChevronLeft className="h-5 w-5 rtl:-scale-x-100" strokeWidth={1.75} aria-hidden="true" />
</Button>
<h2 className="text-text-primary text-center text-base font-semibold">
{localize('com_ui_model_parameters')}
diff --git a/client/src/components/SidePanel/Agents/Search/InputSection.tsx b/client/src/components/SidePanel/Agents/Search/InputSection.tsx
index 166e13564b..26433c1b4e 100644
--- a/client/src/components/SidePanel/Agents/Search/InputSection.tsx
+++ b/client/src/components/SidePanel/Agents/Search/InputSection.tsx
@@ -62,15 +62,15 @@ export default function InputSection({
trigger={
<Menu.MenuButton
onClick={() => setDropdownOpen(!dropdownOpen)}
- className="flex items-center rounded-md border border-border-light px-3 py-1 text-sm text-text-secondary"
+ className="border-border-light text-text-secondary flex items-center rounded-md border px-3 py-1 text-sm"
>
{selectedOption?.label}
- <ChevronDown className="ml-1 h-4 w-4" />
+ <ChevronDown className="ms-1 h-4 w-4" />
</Menu.MenuButton>
}
/>
) : (
- <div className="text-sm text-text-secondary">{selectedOption?.label}</div>
+ <div className="text-text-secondary text-sm">{selectedOption?.label}</div>
)}
</div>
{selectedOption?.inputs &&
@@ -98,12 +98,12 @@ export default function InputSection({
)}
</div>
{config.link && (
- <div className="mt-1 text-xs text-text-secondary">
+ <div className="text-text-secondary mt-1 text-xs">
<a
href={config.link.url}
target="_blank"
rel="noopener noreferrer"
- className="text-link underline hover:text-link-hover"
+ className="text-link hover:text-link-hover underline"
>
{config.link.text}
</a>
diff --git a/client/src/components/SidePanel/Agents/Tools/ActionEditor.tsx b/client/src/components/SidePanel/Agents/Tools/ActionEditor.tsx
index a73ac81151..4e7830edc0 100644
--- a/client/src/components/SidePanel/Agents/Tools/ActionEditor.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ActionEditor.tsx
@@ -114,7 +114,7 @@ export default function ActionEditor({
title={localize('com_ui_delete_action')}
className="max-w-[28.125rem]"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
{localize('com_ui_delete_action_confirm')}
</Label>
}
diff --git a/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx b/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx
index fb7767d61d..9f3c3bf955 100644
--- a/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx
@@ -51,7 +51,7 @@ export default function ItemDialogHeader({ item }: { item: AgentItem }) {
const kindLabel = localize(KIND_LABEL_KEYS[item.kind]);
return (
- <OGDialogHeader className="flex flex-row items-center gap-3 space-y-0 px-6 pt-5 pb-4 text-left">
+ <OGDialogHeader className="flex flex-row items-center gap-3 space-y-0 px-6 pt-5 pb-4 text-start">
<HeaderIcon item={item} />
<div className="min-w-0 flex-1">
<OGDialogTitle className="truncate text-base font-semibold">{displayName}</OGDialogTitle>
diff --git a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/BuiltinSection.tsx b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/BuiltinSection.tsx
index d8f3d63ee0..7c23e922e0 100644
--- a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/BuiltinSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/BuiltinSection.tsx
@@ -95,7 +95,7 @@ function MemoryConfig({ value, onChange }: MemoryConfigProps) {
onCheckedChange={(checked) =>
onChange(checked === true ? MemoryScope.agent : MemoryScope.user)
}
- className="relative float-left mr-2 inline-flex cursor-pointer"
+ className="relative float-start me-2 inline-flex cursor-pointer"
value={isolated.toString()}
aria-labelledby="memory-scope-label"
/>
diff --git a/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx b/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx
index 519de87c9e..6e7e2add00 100644
--- a/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx
@@ -152,7 +152,7 @@ function SidebarItem({ icon, label, active, onClick, count }: SidebarEntry) {
onClick={onClick}
aria-pressed={active}
className={cn(
- 'flex w-full items-center gap-2.5 rounded-lg px-2.5 py-1.5 text-left text-sm transition-colors',
+ 'flex w-full items-center gap-2.5 rounded-lg px-2.5 py-1.5 text-start text-sm transition-colors',
active
? 'bg-surface-active text-text-primary font-medium'
: 'text-text-secondary hover:bg-surface-hover hover:text-text-primary',
@@ -200,7 +200,7 @@ export default function MarketplaceSidebar(props: MarketplaceSidebarProps) {
const createItems = useCreateItems(props.onCreateNew);
return (
- <aside className="border-border-light bg-surface-primary-alt flex w-[min(14rem,35%)] shrink-0 flex-col gap-0.5 border-r p-3">
+ <aside className="border-border-light bg-surface-primary-alt flex w-[min(14rem,35%)] shrink-0 flex-col gap-0.5 border-e p-3">
<h2 className="text-text-primary px-2.5 pt-1 pb-1 text-base font-bold">
{localize('com_ui_tools_marketplace')}
</h2>
diff --git a/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx b/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx
index af62bb4953..427f3df8af 100644
--- a/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx
@@ -208,7 +208,7 @@ export default function SkillsDialog({ open, onOpenChange, agentId }: SkillsDial
size="sm"
onClick={() => setCreateOpen(true)}
aria-label={localize('com_ui_create_skill')}
- className={cn('h-[2.625rem] w-[2.625rem] shrink-0 p-0', !isDesktop && 'ml-auto')}
+ className={cn('h-[2.625rem] w-[2.625rem] shrink-0 p-0', !isDesktop && 'ms-auto')}
>
<Plus className="size-4" aria-hidden="true" />
</Button>
@@ -243,7 +243,7 @@ export default function SkillsDialog({ open, onOpenChange, agentId }: SkillsDial
</OGDialogDescription>
<div className="flex h-[80dvh] max-h-[47.5rem] flex-col">
<div className="border-border-light flex flex-col gap-3 border-b px-4 pt-4 pb-3 md:px-6 md:pt-5 md:pb-4">
- <div className="flex items-center gap-2 pr-10">
+ <div className="flex items-center gap-2 pe-10">
<OGDialogTitle className="text-base font-semibold">
{localize('com_ui_skills')}
</OGDialogTitle>
diff --git a/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx b/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx
index 686e60e2f4..faa288f58e 100644
--- a/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx
@@ -331,13 +331,13 @@ export default function SkillsSection({ items, onInfo, onRemove, onAdd }: Props)
aria-controls="skills-all-list"
className={cn(
ROW,
- 'hover:bg-surface-secondary focus-visible:ring-ring-primary w-full text-left transition-colors focus:outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
+ 'hover:bg-surface-secondary focus-visible:ring-ring-primary w-full text-start transition-colors focus:outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
)}
>
<ChevronRight
className={cn(
- 'text-text-secondary size-4 shrink-0 transition-transform',
- allExpanded && 'rotate-90',
+ 'text-text-secondary size-4 shrink-0 transition-transform rtl:-scale-x-100',
+ allExpanded && 'rotate-90 rtl:-rotate-90',
)}
aria-hidden="true"
/>
@@ -359,7 +359,7 @@ export default function SkillsSection({ items, onInfo, onRemove, onAdd }: Props)
ROW,
// `transition-none` beats the global `all` transition, so
// the highlight lands on the frame the pointer enters.
- 'hover:bg-surface-secondary focus-visible:ring-ring-primary w-full text-left transition-none focus:outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
+ 'hover:bg-surface-secondary focus-visible:ring-ring-primary w-full text-start transition-none focus:outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
)}
>
<SkillIcon item={item} />
@@ -388,7 +388,7 @@ export default function SkillsSection({ items, onInfo, onRemove, onAdd }: Props)
onClick={() => onInfo(item)}
className={cn(
ROW,
- 'focus-visible:ring-ring-primary min-w-0 flex-1 text-left focus:outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
+ 'focus-visible:ring-ring-primary min-w-0 flex-1 text-start focus:outline-hidden focus-visible:ring-2 focus-visible:ring-inset',
)}
>
<SkillIcon item={item} />
@@ -399,7 +399,7 @@ export default function SkillsSection({ items, onInfo, onRemove, onAdd }: Props)
data-skill-remove=""
onClick={() => onRemove(item)}
aria-label={localize('com_ui_skills_remove', { name: item.name })}
- className="text-text-secondary hover:bg-surface-tertiary hover:text-text-primary focus-visible:ring-ring-primary mr-2 flex size-6 shrink-0 items-center justify-center rounded-md transition-colors focus:outline-hidden focus-visible:ring-2"
+ className="text-text-secondary hover:bg-surface-tertiary hover:text-text-primary focus-visible:ring-ring-primary me-2 flex size-6 shrink-0 items-center justify-center rounded-md transition-colors focus:outline-hidden focus-visible:ring-2"
>
<X className="size-3.5" aria-hidden="true" />
</button>
diff --git a/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx b/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx
index 5522732065..873300cd21 100644
--- a/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx
@@ -126,7 +126,7 @@ function ToolCardImpl({
onClick={() => onToggle(item)}
aria-pressed={selected}
className={cn(
- 'touch:pb-9 flex h-full w-full cursor-pointer flex-col gap-2 rounded-2xl p-4 text-left',
+ 'touch:pb-9 flex h-full w-full cursor-pointer flex-col gap-2 rounded-2xl p-4 text-start',
'focus-visible:ring-ring-primary focus:outline-hidden focus-visible:ring-2',
)}
>
@@ -211,7 +211,7 @@ function ToolCardImpl({
) : null}
</button>
{(canFavorite || canConfigure || showInfoOnly) && (
- <div className="absolute right-2 bottom-2 flex items-center gap-1">
+ <div className="absolute inset-e-2 bottom-2 flex items-center gap-1">
{(canConfigure || showInfoOnly) && (
<button
type="button"
diff --git a/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx b/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx
index 4a0c66ae22..e7ac6dcc44 100644
--- a/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx
@@ -260,10 +260,10 @@ export default function ToolsMarketplaceDialog({
/>
)}
<div className="flex min-h-0 min-w-0 flex-1 flex-col">
- {/* md:pl-6, not md:px-6: a responsive variant is emitted after the base
- utilities, so md:px-6 would reset the pr-12 that keeps the search
+ {/* md:ps-6, not md:px-6: a responsive variant is emitted after the base
+ utilities, so md:px-6 would reset the pe-12 that keeps the search
field clear of the dialog's close button. */}
- <div className="flex items-center gap-2 px-4 py-3 pr-12 md:py-4 md:pl-6">
+ <div className="flex items-center gap-2 px-4 py-3 pe-12 md:py-4 md:ps-6">
<div className="relative flex-1">
<Search
className="text-text-tertiary pointer-events-none absolute top-1/2 left-3 z-[1] size-4 -translate-y-1/2"
diff --git a/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx b/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx
index ee04642661..270c0a0da4 100644
--- a/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx
@@ -294,7 +294,7 @@ export default function ToolsSection({ agentId }: Props) {
title={localize('com_ui_delete_action')}
className="max-w-[28.125rem]"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
{localize('com_ui_delete_action_confirm')}
</Label>
}
@@ -319,7 +319,7 @@ export default function ToolsSection({ agentId }: Props) {
title={localize('com_ui_delete_tool')}
className="max-w-[28.125rem]"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
{localize('com_ui_delete_tool_confirm')}
</Label>
}
@@ -364,7 +364,7 @@ function SelectedSection({
<label className="text-text-secondary text-2xs block font-medium tracking-wide uppercase">
{title}
{badge != null && (
- <span className="bg-surface-tertiary text-text-secondary text-3xs ml-1.5 inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full px-1.5 font-medium tracking-normal normal-case">
+ <span className="bg-surface-tertiary text-text-secondary text-3xs ms-1.5 inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full px-1.5 font-medium tracking-normal normal-case">
{badge}
</span>
)}
diff --git a/client/src/components/SidePanel/Agents/Version/VersionContent.tsx b/client/src/components/SidePanel/Agents/Version/VersionContent.tsx
index 3a181e6d13..a71aa2c3ed 100644
--- a/client/src/components/SidePanel/Agents/Version/VersionContent.tsx
+++ b/client/src/components/SidePanel/Agents/Version/VersionContent.tsx
@@ -44,12 +44,12 @@ function VersionListSkeleton() {
{[0, 1, 2].map((i) => (
<li key={i} className="relative flex items-stretch">
<div className="relative flex w-6 shrink-0 justify-center">
- {i < 2 && <div className="absolute -bottom-3 top-0 w-px bg-border-light" />}
- <div className="relative z-10 mt-4 size-5 shrink-0 rounded-full border-2 border-border-light bg-surface-secondary" />
+ {i < 2 && <div className="bg-border-light absolute top-0 -bottom-3 w-px" />}
+ <div className="border-border-light bg-surface-secondary relative z-10 mt-4 size-5 shrink-0 rounded-full border-2" />
</div>
- <div className="mb-2 ml-2 flex flex-1 flex-col gap-2 rounded-xl border border-border-light bg-transparent p-3">
- <div className="h-3 w-24 animate-pulse rounded bg-surface-secondary" />
- <div className="h-3 w-40 animate-pulse rounded bg-surface-secondary" />
+ <div className="border-border-light ms-2 mb-2 flex flex-1 flex-col gap-2 rounded-xl border bg-transparent p-3">
+ <div className="bg-surface-secondary h-3 w-24 animate-pulse rounded" />
+ <div className="bg-surface-secondary h-3 w-40 animate-pulse rounded" />
</div>
</li>
))}
diff --git a/client/src/components/SidePanel/Agents/Version/VersionPanel.tsx b/client/src/components/SidePanel/Agents/Version/VersionPanel.tsx
index d1ea7be8f7..18f77e4e44 100644
--- a/client/src/components/SidePanel/Agents/Version/VersionPanel.tsx
+++ b/client/src/components/SidePanel/Agents/Version/VersionPanel.tsx
@@ -151,7 +151,7 @@ export default function VersionPanel() {
aria-label={localize('com_ui_back_to_builder')}
className="text-text-secondary hover:text-text-primary shrink-0"
>
- <ChevronLeft className="h-5 w-5" strokeWidth={1.75} aria-hidden="true" />
+ <ChevronLeft className="h-5 w-5 rtl:-scale-x-100" strokeWidth={1.75} aria-hidden="true" />
</Button>
<div className="flex flex-col items-center">
<h2 className="text-text-primary text-base font-semibold">
diff --git a/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx b/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx
index 7b085dc3f1..0875769fe6 100644
--- a/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx
+++ b/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx
@@ -104,7 +104,7 @@ export default function BookmarkCardActions({ bookmark }: BookmarkCardActionsPro
title={localize('com_ui_bookmarks_delete')}
className="max-w-[28.125rem]"
main={
- <p className="text-text-secondary text-left text-sm">
+ <p className="text-text-secondary text-start text-sm">
{localize('com_ui_bookmark_delete_confirm')}{' '}
{/* The name is the user's and can be one unbroken run of characters. It
breaks anywhere rather than wrapping on spaces it does not have,
diff --git a/client/src/components/SidePanel/Builder/ActionCallback.tsx b/client/src/components/SidePanel/Builder/ActionCallback.tsx
index 3e03405124..21bf31fbd9 100644
--- a/client/src/components/SidePanel/Builder/ActionCallback.tsx
+++ b/client/src/components/SidePanel/Builder/ActionCallback.tsx
@@ -22,12 +22,11 @@ export default function ActionCallback({ action_id }: { action_id?: string }) {
<Label htmlFor="oauth-callback-url" className="text-sm font-medium">
{localize('com_ui_callback_url')}
</Label>
- <div className="relative">
+ <div className="relative" dir="ltr">
<Input
id="oauth-callback-url"
type="text"
readOnly
- dir="ltr"
value={callbackURL}
aria-label={localize('com_ui_callback_url')}
onFocus={(event) => event.currentTarget.select()}
@@ -38,7 +37,7 @@ export default function ActionCallback({ action_id }: { action_id?: string }) {
isCopied={isCopied}
onClick={() => copyCallbackURL(setIsCopied)}
label={localize('com_ui_copy_link')}
- className="absolute top-1/2 right-1 -translate-y-1/2"
+ className="absolute inset-e-1 top-1/2 -translate-y-1/2"
/>
</div>
</div>
diff --git a/client/src/components/SidePanel/Builder/ActionsAuth.tsx b/client/src/components/SidePanel/Builder/ActionsAuth.tsx
index b542eeeb9d..0f7564b81a 100644
--- a/client/src/components/SidePanel/Builder/ActionsAuth.tsx
+++ b/client/src/components/SidePanel/Builder/ActionsAuth.tsx
@@ -80,7 +80,7 @@ export default function ActionsAuth({ disableOAuth }: { disableOAuth?: boolean }
<OGDialogTrigger asChild>
<button
type="button"
- className="group border-border-light hover:bg-surface-secondary focus-visible:ring-text-primary rounded-theme-control flex w-full items-center gap-3 border bg-transparent px-3 py-2.5 text-left transition-colors focus:outline-hidden focus-visible:ring-2"
+ className="group border-border-light hover:bg-surface-secondary focus-visible:ring-text-primary rounded-theme-control flex w-full items-center gap-3 border bg-transparent px-3 py-2.5 text-start transition-colors focus:outline-hidden focus-visible:ring-2"
>
<current.icon className="text-text-secondary size-5 shrink-0" aria-hidden={true} />
<span className="min-w-0 flex-1">
@@ -91,7 +91,10 @@ export default function ActionsAuth({ disableOAuth }: { disableOAuth?: boolean }
{localize(current.descKey)}
</span>
</span>
- <ChevronRight className="text-text-secondary size-4 shrink-0" aria-hidden={true} />
+ <ChevronRight
+ className="text-text-secondary size-4 shrink-0 rtl:-scale-x-100"
+ aria-hidden={true}
+ />
</button>
</OGDialogTrigger>
</div>
diff --git a/client/src/components/SidePanel/Builder/ActionsPanel.tsx b/client/src/components/SidePanel/Builder/ActionsPanel.tsx
index e90b251b64..bb99007aa9 100644
--- a/client/src/components/SidePanel/Builder/ActionsPanel.tsx
+++ b/client/src/components/SidePanel/Builder/ActionsPanel.tsx
@@ -106,7 +106,11 @@ export default function ActionsPanel({
aria-label={localize('com_ui_back_to_builder')}
className="border-border-light text-text-secondary hover:bg-surface-secondary hover:text-text-primary focus-visible:ring-ring-primary rounded-theme-control inline-flex h-10 w-10 shrink-0 items-center justify-center border transition-colors focus:outline-hidden focus-visible:ring-2"
>
- <ChevronLeft className="h-5 w-5" strokeWidth={1.75} aria-hidden="true" />
+ <ChevronLeft
+ className="h-5 w-5 rtl:-scale-x-100"
+ strokeWidth={1.75}
+ aria-hidden="true"
+ />
</button>
<h2 className="text-text-primary text-center text-base font-semibold">
{localize(action ? 'com_assistants_edit_actions' : 'com_assistants_add_actions')}
@@ -128,7 +132,7 @@ export default function ActionsPanel({
title={localize('com_ui_delete_action')}
className="max-w-[28.125rem]"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
{localize('com_ui_delete_action_confirm')}
</Label>
}
diff --git a/client/src/components/SidePanel/Builder/ActionsTable/Table.tsx b/client/src/components/SidePanel/Builder/ActionsTable/Table.tsx
index 97ec6e53c7..245e66f49b 100644
--- a/client/src/components/SidePanel/Builder/ActionsTable/Table.tsx
+++ b/client/src/components/SidePanel/Builder/ActionsTable/Table.tsx
@@ -17,7 +17,10 @@ export default function DataTable<TData, TValue>({ columns, data }: DataTablePro
<table className="w-full text-sm">
<thead>
{table.getHeaderGroups().map((headerGroup, i) => (
- <tr key={i} className="border-border-light text-text-tertiary border-b text-left text-xs">
+ <tr
+ key={i}
+ className="border-border-light text-text-tertiary border-b text-start text-xs"
+ >
{headerGroup.headers.map((header, j) => (
<th key={j} className="py-1 font-normal">
{header.isPlaceholder
diff --git a/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsx b/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsx
index 13fc4edb44..0725c9137d 100644
--- a/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsx
+++ b/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsx
@@ -39,7 +39,7 @@ export default function AppendDateCheckbox({ control, setValue }: AppendDateChec
id="append_current_datetime"
checked={field.value}
onCheckedChange={handleChange}
- className="relative float-left mr-2 inline-flex cursor-pointer"
+ className="relative float-start me-2 inline-flex cursor-pointer"
value={field.value.toString()}
aria-labelledby="append-date-label"
/>
diff --git a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx
index cd9e63806d..7d3088026c 100644
--- a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx
+++ b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx
@@ -63,7 +63,7 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
ref={(el) => (inputRefs.current[0] = el)}
value={newStarter}
maxLength={64}
- className={`${inputClass} pr-10`}
+ className={`${inputClass} pe-10`}
type="text"
placeholder={
hasReachedMax
@@ -91,7 +91,7 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
{(state: string) => (
<div
ref={nodeRef}
- className={`absolute top-1 right-1 ${
+ className={`absolute inset-e-1 top-1 ${
state === 'entering'
? 'transition-none'
: 'transition-opacity duration-200 ease-in-out'
@@ -121,7 +121,7 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
newValue[index] = e.target.value;
field.onChange(newValue);
}}
- className={`${inputClass} pr-10`}
+ className={`${inputClass} pe-10`}
type="text"
maxLength={64}
/>
@@ -129,7 +129,7 @@ const AssistantConversationStarters: React.FC<AssistantConversationStartersProps
side="top"
description={localize('com_ui_delete')}
aria-label={localize('com_ui_delete')}
- className="hover:bg-surface-hover absolute top-1 right-1 flex size-7 items-center justify-center rounded-lg transition-colors duration-200"
+ className="hover:bg-surface-hover absolute inset-e-1 top-1 flex size-7 items-center justify-center rounded-lg transition-colors duration-200"
onClick={() => handleDeleteStarter(index)}
>
<X className="size-4" aria-hidden="true" />
diff --git a/client/src/components/SidePanel/Builder/AssistantSelect.tsx b/client/src/components/SidePanel/Builder/AssistantSelect.tsx
index b4cec1d3d4..3251ee1df1 100644
--- a/client/src/components/SidePanel/Builder/AssistantSelect.tsx
+++ b/client/src/components/SidePanel/Builder/AssistantSelect.tsx
@@ -269,10 +269,10 @@ export default function AssistantSelect({
)}
renderOption={() => (
<span className="flex items-center gap-1.5 truncate">
- <span className="text-text-primary absolute inset-y-0 left-0 flex items-center pl-2">
+ <span className="text-text-primary absolute inset-y-0 inset-s-0 flex items-center ps-2">
<Plus className="w-[1rem]" />
</span>
- <span className={cn('text-text-primary ml-4 flex h-6 items-center gap-1')}>
+ <span className={cn('text-text-primary ms-4 flex h-6 items-center gap-1')}>
{createAssistant}
</span>
</span>
diff --git a/client/src/components/SidePanel/Builder/AssistantTool.tsx b/client/src/components/SidePanel/Builder/AssistantTool.tsx
index 346d5f2d86..69679d786d 100644
--- a/client/src/components/SidePanel/Builder/AssistantTool.tsx
+++ b/client/src/components/SidePanel/Builder/AssistantTool.tsx
@@ -91,7 +91,7 @@ export default function AssistantTool({
title={localize('com_ui_delete_tool')}
className="max-w-[28.125rem]"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
{localize('com_ui_delete_tool_confirm')}
</Label>
}
diff --git a/client/src/components/SidePanel/Builder/Code.tsx b/client/src/components/SidePanel/Builder/Code.tsx
index 7d4135e7e7..f35cb3b388 100644
--- a/client/src/components/SidePanel/Builder/Code.tsx
+++ b/client/src/components/SidePanel/Builder/Code.tsx
@@ -29,7 +29,7 @@ export default function Code({ version }: { version: number | string }) {
{...field}
checked={field.value}
onCheckedChange={field.onChange}
- className="relative float-left mr-2 inline-flex cursor-pointer"
+ className="relative float-start me-2 inline-flex cursor-pointer"
value={field.value.toString()}
aria-labelledby={Capabilities.code_interpreter}
/>
diff --git a/client/src/components/SidePanel/Builder/ContextButton.tsx b/client/src/components/SidePanel/Builder/ContextButton.tsx
index 94c6459e8a..3379284a1f 100644
--- a/client/src/components/SidePanel/Builder/ContextButton.tsx
+++ b/client/src/components/SidePanel/Builder/ContextButton.tsx
@@ -106,7 +106,7 @@ export default function ContextButton({
<>
<div className="flex w-full flex-col items-center gap-2">
<div className="grid w-full items-center gap-2">
- <Label htmlFor="delete-assistant" className="text-left text-sm font-medium">
+ <Label htmlFor="delete-assistant" className="text-start text-sm font-medium">
{localize('com_ui_delete_assistant_confirm')}
</Label>
</div>
diff --git a/client/src/components/SidePanel/Builder/ImageVision.tsx b/client/src/components/SidePanel/Builder/ImageVision.tsx
index 6e7f424494..27d01aec93 100644
--- a/client/src/components/SidePanel/Builder/ImageVision.tsx
+++ b/client/src/components/SidePanel/Builder/ImageVision.tsx
@@ -19,7 +19,7 @@ export default function ImageVision() {
{...field}
checked={field.value}
onCheckedChange={field.onChange}
- className="relative float-left mr-2 inline-flex cursor-pointer"
+ className="relative float-start me-2 inline-flex cursor-pointer"
value={field.value.toString()}
aria-labelledby={Capabilities.image_vision}
/>
diff --git a/client/src/components/SidePanel/Builder/Retrieval.tsx b/client/src/components/SidePanel/Builder/Retrieval.tsx
index 4b65bd1bda..48868606ba 100644
--- a/client/src/components/SidePanel/Builder/Retrieval.tsx
+++ b/client/src/components/SidePanel/Builder/Retrieval.tsx
@@ -49,7 +49,7 @@ export default function Retrieval({
checked={field.value}
disabled={isDisabled}
onCheckedChange={field.onChange}
- className="relative float-left mr-2 inline-flex cursor-pointer"
+ className="relative float-start me-2 inline-flex cursor-pointer"
value={field.value.toString()}
aria-labelledby={Capabilities.retrieval}
/>
@@ -79,7 +79,7 @@ export default function Retrieval({
</HoverCardTrigger>
</div>
<HoverCardPortal>
- <HoverCardContent side={ESide.Top} disabled={isDisabled} className="ml-16 w-80">
+ <HoverCardContent side={ESide.Top} disabled={isDisabled} className="ms-16 w-80">
<div className="space-y-2">
<p className="text-text-secondary text-sm">
{version == 2 && localize('com_assistants_file_search_info')}
@@ -93,7 +93,7 @@ export default function Retrieval({
description="com_assistants_non_retrieval_model"
langCode={true}
sideOffset={20}
- className="ml-16"
+ className="ms-16"
/>
</div>
</HoverCard>
diff --git a/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx b/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx
index 5a2cc054a3..8fbfae9d6e 100644
--- a/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx
+++ b/client/src/components/SidePanel/MCPBuilder/MCPServerCard.tsx
@@ -132,7 +132,7 @@ export default function MCPServerCard({
{/* Status dot - color indicates connection state */}
<div
className={cn(
- 'absolute -right-0.5 -bottom-0.5 size-3 rounded-full',
+ 'absolute -inset-e-0.5 -bottom-0.5 size-3 rounded-full',
'border-surface-primary border-2',
statusDotColor,
(isInitializing || serverStatus?.connectionState === 'connecting') && 'animate-pulse',
diff --git a/client/src/components/SidePanel/Memories/MemoryCard.tsx b/client/src/components/SidePanel/Memories/MemoryCard.tsx
index 8496b64ef6..465dc0474e 100644
--- a/client/src/components/SidePanel/Memories/MemoryCard.tsx
+++ b/client/src/components/SidePanel/Memories/MemoryCard.tsx
@@ -41,7 +41,7 @@ export default function MemoryCard({ memory, hasUpdateAccess }: MemoryCardProps)
</span>
)}
{hasUpdateAccess && (
- <div className="ml-auto shrink-0">
+ <div className="ms-auto shrink-0">
<MemoryCardActions memory={memory} />
</div>
)}
diff --git a/client/src/components/SidePanel/Memories/MemoryCardActions.tsx b/client/src/components/SidePanel/Memories/MemoryCardActions.tsx
index a705394eb1..c43a6dc31a 100644
--- a/client/src/components/SidePanel/Memories/MemoryCardActions.tsx
+++ b/client/src/components/SidePanel/Memories/MemoryCardActions.tsx
@@ -114,7 +114,7 @@ export default function MemoryCardActions({ memory }: MemoryCardActionsProps) {
title={localize('com_ui_delete_memory')}
className="w-11/12 max-w-lg"
main={
- <Label className="block text-left text-sm font-medium">
+ <Label className="block text-start text-sm font-medium">
{/* The key is the user's: it breaks anywhere, so a long one wraps inside
the dialog instead of setting its width. */}
<Trans
diff --git a/client/src/components/SidePanel/Memories/MemoryPanel.tsx b/client/src/components/SidePanel/Memories/MemoryPanel.tsx
index d640ae5256..3205cdb141 100644
--- a/client/src/components/SidePanel/Memories/MemoryPanel.tsx
+++ b/client/src/components/SidePanel/Memories/MemoryPanel.tsx
@@ -220,7 +220,7 @@ export default function MemoryPanel() {
size="sm"
variant="outline"
className={cn(
- showUsageBadge ? 'ml-auto' : 'w-full',
+ showUsageBadge ? 'ms-auto' : 'w-full',
referenceSavedMemories && 'bg-surface-hover hover:bg-surface-hover',
)}
onClick={() => handleMemoryToggle(!referenceSavedMemories)}
diff --git a/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx b/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx
index 1590578eb4..2cd4291dcf 100644
--- a/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx
@@ -60,7 +60,7 @@ function DynamicCheckbox({
<div className="flex justify-start gap-4">
<Label
htmlFor={`${settingKey}-dynamic-checkbox`}
- className="text-left text-xs font-medium"
+ className="text-start text-xs font-medium"
>
{labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
{showDefault && (
diff --git a/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx b/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx
index 9678951f64..7e6cf6d414 100644
--- a/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx
@@ -83,7 +83,7 @@ function DynamicCombobox({
<div className="flex w-full justify-between">
<Label
htmlFor={`${settingKey}-dynamic-combobox`}
- className="text-left text-xs font-medium"
+ className="text-start text-xs font-medium"
>
{labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}
{showDefault && (
diff --git a/client/src/components/SidePanel/Parameters/DynamicDropdown.tsx b/client/src/components/SidePanel/Parameters/DynamicDropdown.tsx
index c42108be52..20cfc0f8c7 100644
--- a/client/src/components/SidePanel/Parameters/DynamicDropdown.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicDropdown.tsx
@@ -76,7 +76,7 @@ function DynamicDropdown({
<div className="flex w-full justify-between">
<Label
htmlFor={`${settingKey}-dynamic-dropdown`}
- className="text-left text-xs font-medium"
+ className="text-start text-xs font-medium"
>
{labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}
{showDefault && (
diff --git a/client/src/components/SidePanel/Parameters/DynamicInput.tsx b/client/src/components/SidePanel/Parameters/DynamicInput.tsx
index ef26b04acf..26f919f83e 100644
--- a/client/src/components/SidePanel/Parameters/DynamicInput.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicInput.tsx
@@ -174,7 +174,7 @@ function DynamicInput({
<div className="flex w-full justify-between">
<Label
htmlFor={`${settingKey}-dynamic-input`}
- className="text-left text-xs font-medium"
+ className="text-start text-xs font-medium"
>
{labelCode ? localize(label as TranslationKeys) || label : label || settingKey}{' '}
{showDefault && (
diff --git a/client/src/components/SidePanel/Parameters/DynamicSlider.tsx b/client/src/components/SidePanel/Parameters/DynamicSlider.tsx
index badbe98b92..73df1284a6 100644
--- a/client/src/components/SidePanel/Parameters/DynamicSlider.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicSlider.tsx
@@ -176,7 +176,7 @@ function DynamicSlider({
<div className="flex w-full items-center justify-between">
<Label
htmlFor={`${settingKey}-dynamic-setting`}
- className="text-left text-xs font-medium break-words"
+ className="text-start text-xs font-medium break-words"
>
{labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
{showDefault && (
diff --git a/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx b/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx
index 3d04dcc6b7..a65646d05c 100644
--- a/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx
@@ -56,7 +56,7 @@ function DynamicSwitch({
<div className="flex justify-between">
<Label
htmlFor={`${settingKey}-dynamic-switch`}
- className="text-left text-xs font-medium break-words"
+ className="text-start text-xs font-medium break-words"
>
{labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
{showDefault && (
diff --git a/client/src/components/SidePanel/Parameters/DynamicTags.tsx b/client/src/components/SidePanel/Parameters/DynamicTags.tsx
index c120460238..3f87089a4c 100644
--- a/client/src/components/SidePanel/Parameters/DynamicTags.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicTags.tsx
@@ -111,7 +111,7 @@ function DynamicTags({
<div className="flex w-full justify-between">
<Label
htmlFor={`${settingKey}-dynamic-input`}
- className="text-left text-xs font-medium"
+ className="text-start text-xs font-medium"
>
{labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
{showDefault && (
diff --git a/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx b/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx
index 4eb08ab93a..605b73f318 100644
--- a/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx
@@ -58,7 +58,7 @@ function DynamicTextarea({
<div className="flex w-full justify-between">
<Label
htmlFor={`${settingKey}-dynamic-textarea`}
- className="text-left text-xs font-medium"
+ className="text-start text-xs font-medium"
>
{labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}
{showDefault && (
diff --git a/client/src/components/SidePanel/Schedules/ScheduleCard.tsx b/client/src/components/SidePanel/Schedules/ScheduleCard.tsx
index 832495ff98..dc73167334 100644
--- a/client/src/components/SidePanel/Schedules/ScheduleCard.tsx
+++ b/client/src/components/SidePanel/Schedules/ScheduleCard.tsx
@@ -306,13 +306,13 @@ export default function ScheduleCard({ schedule, projectName, consentEnabled }:
icon: runSchedule.isLoading ? (
<Spinner className="size-4" />
) : (
- <Play className="icon-sm text-text-primary mr-2" aria-hidden="true" />
+ <Play className="icon-sm text-text-primary me-2" aria-hidden="true" />
),
},
{
label: localize('com_ui_edit'),
onClick: () => setEditOpen(true),
- icon: <Pencil className="icon-sm text-text-primary mr-2" aria-hidden="true" />,
+ icon: <Pencil className="icon-sm text-text-primary me-2" aria-hidden="true" />,
ariaHasPopup: 'dialog' as const,
hideOnClick: false,
ref: editButtonRef,
@@ -321,7 +321,7 @@ export default function ScheduleCard({ schedule, projectName, consentEnabled }:
{
label: localize('com_ui_delete'),
onClick: () => setDeleteOpen(true),
- icon: <Trash className="icon-sm text-text-primary mr-2" aria-hidden="true" />,
+ icon: <Trash className="icon-sm text-text-primary me-2" aria-hidden="true" />,
ariaHasPopup: 'dialog' as const,
hideOnClick: false,
ref: deleteButtonRef,
@@ -462,7 +462,7 @@ export default function ScheduleCard({ schedule, projectName, consentEnabled }:
title={localize('com_ui_schedule_delete')}
className="w-11/12 max-w-lg"
main={
- <Label className="text-left text-sm font-medium">
+ <Label className="text-start text-sm font-medium">
<Trans
i18nKey="com_ui_delete_confirm_strong"
values={{ title: schedule.name }}
diff --git a/client/src/routes/RouteErrorBoundary.tsx b/client/src/routes/RouteErrorBoundary.tsx
index 3ea25fdc25..31dfc0efd5 100644
--- a/client/src/routes/RouteErrorBoundary.tsx
+++ b/client/src/routes/RouteErrorBoundary.tsx
@@ -181,7 +181,7 @@ export default function RouteErrorBoundary() {
variant="outline"
size="sm"
onClick={handleCopyStack}
- className="ml-2 px-2 py-1 text-xs"
+ className="ms-2 px-2 py-1 text-xs"
aria-label={localize('com_ui_copy_stack_trace')}
>
{localize('com_ui_copy')}
@@ -191,7 +191,7 @@ export default function RouteErrorBoundary() {
<div className="bg-surface-tertiary overflow-x-auto rounded-lg p-4">
{formatStackTrace(errorDetails.stack).map(({ number, content }) => (
<div key={number} className="flex">
- <span className="text-text-secondary pr-4 font-mono text-xs select-none">
+ <span className="text-text-secondary pe-4 font-mono text-xs select-none">
{String(number).padStart(3, '0')}
</span>
<pre className="text-text-primary flex-1 font-mono text-xs leading-relaxed">
diff --git a/e2e/specs/mock/scenarios/rtl-shell-sides.spec.ts b/e2e/specs/mock/scenarios/rtl-shell-sides.spec.ts
new file mode 100644
index 0000000000..da2526a5a8
--- /dev/null
+++ b/e2e/specs/mock/scenarios/rtl-shell-sides.spec.ts
@@ -0,0 +1,151 @@
+import { expect, test } from '@playwright/test';
+import type { Page } from '@playwright/test';
+import { randomUUID } from 'node:crypto';
+import {
+ deleteMessagesByConversation,
+ deleteConversations,
+ seedConversations,
+ seedMessages,
+ withMongo,
+} from '../db';
+import { getE2EUser } from '../../../setup/user';
+import { getAccessToken, requestJson } from '../helpers';
+
+/**
+ * The shell sweep turned physical offsets (`-right-0.5`, `pl-*`, `text-left`) into
+ * logical utilities, so an Arabic interface (`dir="rtl"`) mirrors them while English
+ * renders exactly as before. The chat header is the observable: once a chat has a
+ * shared link, its options button carries a dot on the corner at the header's
+ * inline end. Assertions read rendered geometry, since a class name says nothing
+ * about the side it lands on.
+ *
+ * The UI language is seeded the way a returning user arrives, through the stored
+ * `lang` preference, and the dot is found by its test id because names are localized.
+ */
+
+const userEmail = getE2EUser().email;
+
+type Locale = 'en' | 'ar';
+
+async function withLanguage(page: Page, locale: Locale) {
+ await page.addInitScript((value) => {
+ window.localStorage.setItem('lang', JSON.stringify(value));
+ }, locale);
+}
+
+/** A two-turn chat with an active shared link, created through the real share route. */
+async function seedSharedChat(page: Page) {
+ const conversationId = randomUUID();
+ const userMessageId = randomUUID();
+ await seedConversations(userEmail, [
+ { conversationId, title: `Shared sides ${conversationId.slice(0, 8)}`, updatedAt: new Date() },
+ ]);
+ await seedMessages(userEmail, conversationId, [
+ {
+ messageId: userMessageId,
+ parentMessageId: '00000000-0000-0000-0000-000000000000',
+ text: 'Which side is the start?',
+ isCreatedByUser: true,
+ sender: 'User',
+ },
+ {
+ messageId: randomUUID(),
+ parentMessageId: userMessageId,
+ text: 'The one the text begins on.',
+ isCreatedByUser: false,
+ sender: 'Assistant',
+ },
+ ]);
+ await page.goto('/c/new', { timeout: 15_000 });
+ const token = await getAccessToken(page);
+ await requestJson(page, {
+ path: `/api/share/${conversationId}`,
+ token,
+ method: 'POST',
+ body: { snapshotFiles: false },
+ });
+ return conversationId;
+}
+
+async function cleanup(conversationId: string) {
+ await withMongo((db) => db.collection('sharedlinks').deleteMany({ conversationId }));
+ await deleteMessagesByConversation([conversationId]);
+ await deleteConversations([conversationId]);
+}
+
+/** Where the shared-link dot sits relative to its button. Wide headers render it on
+ * the chat options button, narrow ones on the header menu button; both carry it. */
+async function dotSide(page: Page) {
+ const dot = page
+ .locator(
+ '[data-testid="header-shared-link-indicator"], [data-testid="header-menu-shared-link-indicator"]',
+ )
+ .filter({ visible: true })
+ .first();
+ await expect(dot).toBeVisible({ timeout: 15_000 });
+ return dot.evaluate((element) => {
+ const button = element.closest('button');
+ if (!button) {
+ throw new Error('the shared-link dot is not inside its button');
+ }
+ const host = button.getBoundingClientRect();
+ const mark = element.getBoundingClientRect();
+ return {
+ direction: getComputedStyle(button).direction,
+ dotCenter: mark.left + mark.width / 2,
+ buttonCenter: host.left + host.width / 2,
+ dotTop: mark.top,
+ buttonTop: host.top,
+ };
+ });
+}
+
+async function openSharedChat(page: Page, locale: Locale) {
+ const conversationId = await seedSharedChat(page);
+ await withLanguage(page, locale);
+ await page.goto(`/c/${conversationId}`, { timeout: 15_000 });
+ await expect(page.locator('html')).toHaveAttribute('dir', locale === 'ar' ? 'rtl' : 'ltr');
+ return conversationId;
+}
+
+test.describe('logical sides in the app shell', () => {
+ test('an Arabic interface puts the shared chat dot on the top-left corner of the chat options button @scenario:rtl-shared-chat-dot-on-inline-end', async ({
+ page,
+ }) => {
+ test.setTimeout(60_000);
+ let conversationId: string | undefined;
+ try {
+ conversationId = await openSharedChat(page, 'ar');
+ await expect.poll(async () => (await dotSide(page)).direction).toBe('rtl');
+ const side = await dotSide(page);
+ expect(side.dotCenter, 'the dot should sit left of centre (inline end)').toBeLessThan(
+ side.buttonCenter,
+ );
+ expect(side.dotTop).toBeLessThan(side.buttonTop + 4);
+ } finally {
+ if (conversationId) {
+ await cleanup(conversationId);
+ }
+ }
+ });
+
+ test('an English interface keeps the shared chat dot on the top-right corner @scenario:ltr-shared-chat-dot-unchanged', async ({
+ page,
+ }) => {
+ test.setTimeout(60_000);
+ let conversationId: string | undefined;
+ try {
+ conversationId = await openSharedChat(page, 'en');
+ const side = await dotSide(page);
+ expect(side.direction).toBe('ltr');
+ expect(side.dotCenter, 'the dot should sit right of centre').toBeGreaterThan(
+ side.buttonCenter,
+ );
+ expect(side.dotTop).toBeLessThan(side.buttonTop + 4);
+ } finally {
+ if (conversationId) {
+ await cleanup(conversationId);
+ }
+ }
+ });
+});
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index e550d2abe9..d66b56d996 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -609,7 +609,7 @@
},
"client/src/components/Conversations/ProjectsSection.tsx": {
"shadcn/no-restyle": {
- "count": 7
+ "count": 6
}
},
"client/src/components/Conversations/RenameForm.tsx": {