Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor(web): migrate tables with inherited header alignment to logical classes (#45036)

yyhc5dcfd3c1599
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index 3773dc4432a..1dac14290d6 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -6456,11 +6456,6 @@
"count": 2
}
},
- "web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 3
- }
- },
"web/features/agent-v2/agent-detail/configure/__tests__/configure-test-env.tsx": {
"typescript/no-deprecated": {
"count": 1
@@ -6604,21 +6599,11 @@
"count": 2
}
},
- "web/features/agent-v2/agent-detail/logs/components/logs-table.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 8
- }
- },
"web/features/agent-v2/agent-detail/logs/page.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 1
}
},
- "web/features/agent-v2/agent-detail/monitoring/chart.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 1
- }
- },
"web/features/agent-v2/agent-detail/monitoring/time-range-picker.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 2
@@ -6809,21 +6794,6 @@
"count": 2
}
},
- "web/features/new-rag/quality/bad-cases-panel.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 10
- }
- },
- "web/features/new-rag/quality/golden-questions-panel.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 16
- }
- },
- "web/features/new-rag/quality/quality-evaluation-panel.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 22
- }
- },
"web/features/new-rag/quality/quality-row-menu-trigger.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 1
@@ -6879,11 +6849,6 @@
"count": 2
}
},
- "web/features/new-rag/sources/page.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 1
- }
- },
"web/features/new-rag/sources/setup/connected-source-configuration.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 2
@@ -6977,11 +6942,6 @@
"count": 1
}
},
- "web/features/skills/detail/markdown-editor.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 15
- }
- },
"web/features/skills/detail/page.tsx": {
"eslint-react/set-state-in-effect": {
"count": 4
diff --git a/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx b/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx
index 435247eaaaf..2723f9ae1c6 100644
--- a/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx
+++ b/web/features/agent-v2/agent-detail/access/components/workflow-references-table.tsx
@@ -46,20 +46,20 @@ export function WorkflowReferencesTable({ agentId, enabled = true }: WorkflowRef
<col className="w-36" />
</colgroup>
<thead>
- <tr className="h-7 rounded-lg bg-background-section-burn text-left system-xs-semibold-uppercase text-text-tertiary">
- <th scope="col" className="rounded-l-lg px-3 font-semibold">
+ <tr className="h-7 rounded-lg bg-background-section-burn text-start system-xs-semibold-uppercase text-text-tertiary">
+ <th scope="col" className="rounded-s-lg px-3 text-start font-semibold">
{t(($) => $['agentDetail.access.workflow.table.name'])}
</th>
- <th scope="col" className="px-3 font-semibold">
+ <th scope="col" className="px-3 text-start font-semibold">
{t(($) => $['agentDetail.access.workflow.table.version'])}
</th>
- <th scope="col" className="px-3 font-semibold">
+ <th scope="col" className="px-3 text-start font-semibold">
{t(($) => $['agentDetail.access.workflow.table.nodes'])}
</th>
- <th scope="col" className="px-3 font-semibold">
+ <th scope="col" className="px-3 text-start font-semibold">
{t(($) => $['agentDetail.access.workflow.table.lastUpdated'])}
</th>
- <th scope="col" className="rounded-r-lg px-3 font-semibold">
+ <th scope="col" className="rounded-e-lg px-3 text-start font-semibold">
{t(($) => $['agentDetail.access.workflow.table.actions'])}
</th>
</tr>
diff --git a/web/features/agent-v2/agent-detail/logs/components/logs-table.tsx b/web/features/agent-v2/agent-detail/logs/components/logs-table.tsx
index 82148deef49..bcfbca42852 100644
--- a/web/features/agent-v2/agent-detail/logs/components/logs-table.tsx
+++ b/web/features/agent-v2/agent-detail/logs/components/logs-table.tsx
@@ -52,7 +52,7 @@ export function AgentLogsTable({
return (
<div className="flex h-full min-w-0 flex-col overflow-hidden">
- <div className="hidden shrink-0 pr-3 lg:block">
+ <div className="hidden shrink-0 pe-3 lg:block">
<table aria-hidden="true" className="w-full table-fixed border-collapse">
<LogsTableColGroup />
<LogsTableHeader labels={tableHeaderLabels} sort={sort} />
@@ -66,7 +66,7 @@ export function AgentLogsTable({
tabIndex={0}
className="overscroll-contain"
>
- <ScrollAreaContent className="pr-3">
+ <ScrollAreaContent className="pe-3">
<table className="w-full min-w-[56rem] table-fixed border-collapse lg:min-w-0">
<LogsTableColGroup />
<LogsTableHeader labels={tableHeaderLabels} sort={sort} rowClassName="lg:sr-only" />
@@ -166,7 +166,7 @@ function AgentLogsTableBody({
<TableCell>
<button
type="button"
- className="block w-full truncate rounded-sm text-left system-sm-medium text-text-secondary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden"
+ className="block w-full truncate rounded-sm text-start system-sm-medium text-text-secondary focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden"
onClick={(event) => {
event.stopPropagation()
onOpenLog(log)
@@ -226,11 +226,11 @@ function LogsTableHeader({
<thead>
<tr
className={cn(
- 'h-7 bg-background-section-burn text-left system-xs-medium-uppercase text-text-tertiary',
+ 'h-7 bg-background-section-burn text-start system-xs-medium-uppercase text-text-tertiary',
rowClassName,
)}
>
- <th scope="col" className="rounded-l-lg px-0">
+ <th scope="col" className="rounded-s-lg px-0 text-start">
<span className="sr-only">{labels.unread}</span>
</th>
<TableHead>{labels.title}</TableHead>
@@ -244,7 +244,7 @@ function LogsTableHeader({
</TableHead>
<TableHead
aria-sort={sort.field === 'created_at' ? sortDirection : undefined}
- className="rounded-r-lg"
+ className="rounded-e-lg"
>
{labels.createdTime}
</TableHead>
@@ -272,7 +272,7 @@ function LogsTableColGroup() {
function LogsStateRow({ children }: { children: ReactNode }) {
return (
<tr className="h-20 border-b border-divider-subtle">
- <td colSpan={9} className="px-3 text-left text-text-tertiary lg:text-center">
+ <td colSpan={9} className="px-3 text-start text-text-tertiary lg:text-center">
{children}
</td>
</tr>
@@ -321,7 +321,9 @@ function LogsSkeletonRows() {
}
function TableHead({ className, ...props }: ThHTMLAttributes<HTMLTableCellElement>) {
- return <th scope="col" className={cn('px-3 text-left whitespace-nowrap', className)} {...props} />
+ return (
+ <th scope="col" className={cn('px-3 text-start whitespace-nowrap', className)} {...props} />
+ )
}
function TableCell({ children, className, ...props }: TdHTMLAttributes<HTMLTableCellElement>) {
diff --git a/web/features/agent-v2/agent-detail/monitoring/chart.tsx b/web/features/agent-v2/agent-detail/monitoring/chart.tsx
index 21d03a2b766..99264bf55b9 100644
--- a/web/features/agent-v2/agent-detail/monitoring/chart.tsx
+++ b/web/features/agent-v2/agent-detail/monitoring/chart.tsx
@@ -116,21 +116,27 @@ export function AgentMonitoringChart({
<table
id={tableId}
aria-labelledby={titleId}
- className="w-full border-collapse text-left system-sm-regular"
+ className="w-full border-collapse text-start system-sm-regular"
>
<thead>
<tr>
- <th scope="col">{t(($) => $['agentDetail.monitoring.table.date'])}</th>
- <th scope="col">{t(($) => $['agentDetail.monitoring.table.value'])}</th>
+ <th scope="col" className="text-start">
+ {t(($) => $['agentDetail.monitoring.table.date'])}
+ </th>
+ <th scope="col" className="text-start">
+ {t(($) => $['agentDetail.monitoring.table.value'])}
+ </th>
{chartType === 'tokenUsage' && (
- <th scope="col">{t(($) => $['agentDetail.monitoring.table.estimatedCost'])}</th>
+ <th scope="col" className="text-start">
+ {t(($) => $['agentDetail.monitoring.table.estimatedCost'])}
+ </th>
)}
</tr>
</thead>
<tbody>
{rows.map((row) => (
<tr key={row.date}>
- <th scope="row">
+ <th scope="row" className="text-start">
<time dateTime={row.date}>
{formatToLocalTime(dayjs(row.date), locale, 'MMM D, YYYY')}
</time>
diff --git a/web/features/new-rag/quality/bad-cases-panel.tsx b/web/features/new-rag/quality/bad-cases-panel.tsx
index c40b91cf2f8..99b4892c6e7 100644
--- a/web/features/new-rag/quality/bad-cases-panel.tsx
+++ b/web/features/new-rag/quality/bad-cases-panel.tsx
@@ -270,16 +270,16 @@ function BadCaseRow({
return (
<tr className="h-12 border-t border-divider-subtle">
- <th scope="row" className="truncate pr-3 text-left system-sm-medium text-text-primary">
+ <th scope="row" className="truncate pe-3 text-start system-sm-medium text-text-primary">
{item.question}
</th>
- <td className="pr-3">
+ <td className="pe-3">
<BadCaseStatus status={item.status} />
</td>
- <td className="pr-3 system-xs-regular text-text-secondary">
+ <td className="pe-3 system-xs-regular text-text-secondary">
<BadCaseReason question={item.question} reason={item.reason} tags={item.tags} />
</td>
- <td className="pr-3 system-xs-regular text-text-secondary">
+ <td className="pe-3 system-xs-regular text-text-secondary">
{formatQualityUpdatedAt(item.updated_at, i18n.language)}
</td>
<td>
@@ -390,7 +390,7 @@ export function BadCasesPanel() {
<div className="mt-2.5 w-full overflow-x-auto pt-3">
<table
aria-label={t(($) => $['qualityPage.badCasesTab'], { ns: 'knowledgeQuality' })}
- className="w-full min-w-202 table-fixed border-collapse text-left"
+ className="w-full min-w-202 table-fixed border-collapse text-start"
>
<colgroup>
<col />
@@ -401,16 +401,16 @@ export function BadCasesPanel() {
</colgroup>
<thead>
<tr className="h-9 text-[11px] leading-4 font-medium text-text-tertiary">
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.question'], { ns: 'knowledgeSpace' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.statusLabel'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.reason'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.updated'], { ns: 'knowledgeQuality' })}
</th>
<td />
diff --git a/web/features/new-rag/quality/golden-questions-panel.tsx b/web/features/new-rag/quality/golden-questions-panel.tsx
index c67f23ab5ef..c58d06f7cb9 100644
--- a/web/features/new-rag/quality/golden-questions-panel.tsx
+++ b/web/features/new-rag/quality/golden-questions-panel.tsx
@@ -97,7 +97,7 @@ function GoldenAnnotation({ annotation }: { annotation: string }) {
render={
<button
type="button"
- className="block w-fit max-w-full min-w-0 truncate text-left system-xs-regular text-text-secondary"
+ className="block w-fit max-w-full min-w-0 truncate text-start system-xs-regular text-text-secondary"
>
{annotation}
</button>
@@ -332,7 +332,7 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
<div className="mt-2.5 w-full overflow-x-auto pt-3">
<table
aria-label={t(($) => $['qualityPage.goldenTab'], { ns: 'knowledgeQuality' })}
- className="w-full min-w-195 table-fixed border-collapse text-left"
+ className="w-full min-w-195 table-fixed border-collapse text-start"
>
<colgroup>
<col className="w-7" />
@@ -345,7 +345,7 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
</colgroup>
<thead>
<tr className="h-9 text-[11px] leading-4 font-medium text-text-tertiary">
- <td className="pr-3 align-middle">
+ <td className="pe-3 align-middle">
<Checkbox
aria-label={t(($) => $['qualityPage.selectAll'], { ns: 'knowledgeQuality' })}
checked={allSelected}
@@ -354,19 +354,19 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
onCheckedChange={toggleAll}
/>
</td>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.question'], { ns: 'knowledgeSpace' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.statusLabel'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.tags'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.annotation'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.updated'], { ns: 'knowledgeQuality' })}
</th>
<td />
@@ -375,7 +375,7 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
<tbody>
{items.map((item) => (
<tr key={item.id} className="h-12 border-t border-divider-subtle">
- <td className="pr-3 align-middle">
+ <td className="pe-3 align-middle">
<Checkbox
aria-label={t(($) => $['qualityPage.selectQuestion'], {
ns: 'knowledgeQuality',
@@ -388,11 +388,11 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
</td>
<th
scope="row"
- className="truncate pr-3 text-left system-sm-medium text-text-primary"
+ className="truncate pe-3 text-start system-sm-medium text-text-primary"
>
{item.question ?? ''}
</th>
- <td className="pr-3">
+ <td className="pe-3">
<GoldenStatus
reason={item.status_reason}
status={
@@ -401,7 +401,7 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
}
/>
</td>
- <td className="pr-3">
+ <td className="pe-3">
<div className="flex min-w-0 gap-1 overflow-hidden">
{visibleQualityTags(item.tags).map((tag) => (
<Badge key={tag} size="xs" variant="dimm" className="max-w-full min-w-0">
@@ -412,10 +412,10 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
))}
</div>
</td>
- <td className="pr-3">
+ <td className="pe-3">
<GoldenAnnotation annotation={item.annotation} />
</td>
- <td className="pr-3 system-xs-regular text-text-secondary">
+ <td className="pe-3 system-xs-regular text-text-secondary">
{formatQualityUpdatedAt(item.updated_at, i18n.language)}
</td>
<td>
@@ -482,7 +482,7 @@ export function GoldenQuestionsPanel({ actionSlot }: GoldenQuestionsPanelProps)
)}
{canEdit && selected.size > 0 && (
- <div className="fixed bottom-6 left-[calc(50%+var(--new-rag-sidebar-width)/2)] flex h-12 -translate-x-1/2 items-center gap-2 rounded-xl border border-components-panel-border bg-components-panel-bg px-3 shadow-xl">
+ <div className="fixed inset-s-[calc(50%+var(--new-rag-sidebar-width)/2)] bottom-6 flex h-12 -translate-x-1/2 items-center gap-2 rounded-xl border border-components-panel-border bg-components-panel-bg px-3 shadow-xl rtl:translate-x-1/2">
<span className="system-sm-medium text-text-primary">
{t(($) => $['qualityPage.selectedCount'], {
ns: 'knowledgeQuality',
diff --git a/web/features/new-rag/quality/quality-evaluation-panel.tsx b/web/features/new-rag/quality/quality-evaluation-panel.tsx
index 41e0cb74f19..61b4c6c4e8f 100644
--- a/web/features/new-rag/quality/quality-evaluation-panel.tsx
+++ b/web/features/new-rag/quality/quality-evaluation-panel.tsx
@@ -222,7 +222,7 @@ export function EvaluationReport({
<div className="mt-4 overflow-x-auto">
<table
aria-label={t(($) => $['qualityPage.evaluation.reportTitle'], { ns: 'knowledgeQuality' })}
- className="w-full min-w-190 table-fixed border-collapse text-left"
+ className="w-full min-w-190 table-fixed border-collapse text-start"
>
<colgroup>
<col />
@@ -232,16 +232,16 @@ export function EvaluationReport({
</colgroup>
<thead>
<tr className="h-9 system-2xs-medium-uppercase text-text-tertiary">
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.question'], { ns: 'knowledgeSpace' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.statusLabel'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.evaluation.evidenceHit'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="font-medium">
+ <th scope="col" className="text-start font-medium">
{t(($) => $['qualityPage.evaluation.duration'], { ns: 'knowledgeQuality' })}
</th>
</tr>
@@ -253,19 +253,19 @@ export function EvaluationReport({
<tr key={item.id} className="h-12 border-t border-divider-subtle">
<th
scope="row"
- className="truncate pr-3 text-left system-sm-medium text-text-primary"
+ className="truncate pe-3 text-start system-sm-medium text-text-primary"
>
{item.question}
</th>
- <td className="pr-3">
+ <td className="pe-3">
<EvaluationState state={item.state} />
</td>
- <td className="pr-3">
+ <td className="pe-3">
{diff ? (
<Button
variant="ghost"
size="small"
- className="-ml-2 w-fit px-2 text-text-accent"
+ className="-ms-2 w-fit px-2 text-text-accent"
aria-label={t(($) => $['qualityPage.evaluation.openEvidenceDetails'], {
ns: 'knowledgeQuality',
expected: diff.expected_count,
@@ -717,7 +717,7 @@ export function QualityEvaluationPanel({
<div className="mt-2.5 overflow-x-auto pt-3">
<table
aria-label={t(($) => $['qualityPage.evaluationTab'], { ns: 'knowledgeQuality' })}
- className="w-full min-w-185 table-fixed border-collapse text-left"
+ className="w-full min-w-185 table-fixed border-collapse text-start"
>
<colgroup>
<col className="w-40.5" />
@@ -729,19 +729,19 @@ export function QualityEvaluationPanel({
</colgroup>
<thead>
<tr className="h-9 system-2xs-medium-uppercase text-text-tertiary">
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.evaluation.createdAt'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.statusLabel'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.evaluation.modeLabel'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.evaluation.hitRate'], { ns: 'knowledgeQuality' })}
</th>
- <th scope="col" className="pr-3 font-medium">
+ <th scope="col" className="pe-3 text-start font-medium">
{t(($) => $['qualityPage.evaluation.progress'], { ns: 'knowledgeQuality' })}
</th>
<td />
@@ -752,7 +752,7 @@ export function QualityEvaluationPanel({
<tr key={run.id} className="h-12 border-t border-divider-subtle">
<th
scope="row"
- className="pr-3 text-left system-xs-regular font-normal text-text-secondary"
+ className="pe-3 text-start system-xs-regular font-normal text-text-secondary"
>
{formatQualityEvaluationCreatedAt(
run.created_at,
@@ -760,24 +760,24 @@ export function QualityEvaluationPanel({
i18n.language,
)}
</th>
- <td className="pr-3">
+ <td className="pe-3">
<EvaluationState state={run.state} />
</td>
- <td className="pr-3 system-xs-regular text-text-secondary">
+ <td className="pe-3 system-xs-regular text-text-secondary">
{t(($) => $[`qualityPage.evaluation.mode.${run.mode}`], {
ns: 'knowledgeQuality',
})}
</td>
- <td className="pr-3 system-sm-medium text-text-primary">
+ <td className="pe-3 system-sm-medium text-text-primary">
{run.summary.completed > 0
? percent(run.summary.hit_rate, i18n.language)
: '—'}
</td>
- <td className="pr-3 system-xs-regular text-text-secondary">
+ <td className="pe-3 system-xs-regular text-text-secondary">
{new Intl.NumberFormat(i18n.language).format(run.summary.completed)} /{' '}
{new Intl.NumberFormat(i18n.language).format(run.summary.total)}
</td>
- <td className="text-right">
+ <td className="text-end">
<Button variant="secondary" size="small" onClick={() => openReport(run)}>
{t(($) => $['qualityPage.evaluation.viewReport'], {
ns: 'knowledgeQuality',
diff --git a/web/features/new-rag/sources/page.tsx b/web/features/new-rag/sources/page.tsx
index 9b61d0a5408..4cbd88f5776 100644
--- a/web/features/new-rag/sources/page.tsx
+++ b/web/features/new-rag/sources/page.tsx
@@ -302,7 +302,7 @@ function SourcesTable({
return (
<div className="mt-3 min-w-0">
- <table className="relative block w-full text-left">
+ <table className="relative block w-full text-start">
<thead className="absolute size-px overflow-hidden text-[11px] leading-4 font-medium tracking-[0.3px] whitespace-nowrap text-text-tertiary uppercase [clip:rect(0,0,0,0)] @min-[768px]/knowledge-content:static @min-[768px]/knowledge-content:block @min-[768px]/knowledge-content:size-auto @min-[768px]/knowledge-content:overflow-visible @min-[768px]/knowledge-content:whitespace-normal @min-[768px]/knowledge-content:[clip:auto]">
<tr className={cn(sourceTableGridClass, 'py-2.5')}>
<th className="flex items-center">
@@ -326,7 +326,7 @@ function SourcesTable({
aria-sort={
sort === 'name-asc' ? 'ascending' : sort === 'name-desc' ? 'descending' : 'none'
}
- className="min-w-0 @min-[768px]/knowledge-content:col-start-2 @min-[960px]/knowledge-content:col-start-auto"
+ className="min-w-0 text-start @min-[768px]/knowledge-content:col-start-2 @min-[960px]/knowledge-content:col-start-auto"
>
<Button
variant="ghost"
@@ -346,20 +346,20 @@ function SourcesTable({
)}
</Button>
</th>
- <th className="hidden min-w-0 @min-[960px]/knowledge-content:block">
+ <th className="hidden min-w-0 text-start @min-[960px]/knowledge-content:block">
{t(($) => $['metadata.createMetadata.type'], { ns: 'dataset' })}
</th>
- <th className="min-w-0 @min-[768px]/knowledge-content:col-start-3 @min-[960px]/knowledge-content:col-start-auto">
+ <th className="min-w-0 text-start @min-[768px]/knowledge-content:col-start-3 @min-[960px]/knowledge-content:col-start-auto">
{t(($) => $.statusColumn)}
</th>
- <th className="hidden min-w-0 @min-[960px]/knowledge-content:block">
+ <th className="hidden min-w-0 text-start @min-[960px]/knowledge-content:block">
{t(($) => $.syncPolicyColumn, { ns: 'knowledgeSources' })}
</th>
- <th className="min-w-0 @min-[768px]/knowledge-content:col-start-4 @min-[960px]/knowledge-content:col-start-auto">
+ <th className="min-w-0 text-start @min-[768px]/knowledge-content:col-start-4 @min-[960px]/knowledge-content:col-start-auto">
{t(($) => $.lastSyncColumn, { ns: 'knowledgeSources' })}
</th>
<th
- className="@min-[768px]/knowledge-content:col-start-5 @min-[960px]/knowledge-content:col-start-auto"
+ className="text-start @min-[768px]/knowledge-content:col-start-5 @min-[960px]/knowledge-content:col-start-auto"
aria-label={t(($) => $.actionsColumn)}
/>
</tr>
diff --git a/web/features/skills/detail/markdown-editor.tsx b/web/features/skills/detail/markdown-editor.tsx
index d34f25e037f..9007126390c 100644
--- a/web/features/skills/detail/markdown-editor.tsx
+++ b/web/features/skills/detail/markdown-editor.tsx
@@ -316,7 +316,7 @@ function useSkillMarkdownComponents(onOpenReference?: (path: string) => void) {
className="inline-flex cursor-pointer flex-col items-start px-0.5 py-px align-baseline outline-hidden focus-visible:rounded-[5px] focus-visible:ring-2 focus-visible:ring-state-accent-solid"
onClick={() => onOpenReference?.(referencePath)}
>
- <span className="inline-flex min-w-4.5 items-center overflow-hidden rounded-[5px] border border-state-accent-hover-alt bg-state-accent-hover py-px pr-1 pl-px text-text-accent shadow-xs">
+ <span className="inline-flex min-w-4.5 items-center overflow-hidden rounded-[5px] border border-state-accent-hover-alt bg-state-accent-hover py-px ps-px pe-1 text-text-accent shadow-xs">
<span className="inline-flex min-w-0 items-center gap-0.5">
<span className="inline-flex shrink-0 items-center justify-center p-px">
<span
@@ -388,7 +388,7 @@ export function MarkdownModeSwitch({
const { t } = useTranslation(['skill'])
return (
- <div className="absolute top-3 right-2 z-10 flex h-8 items-center rounded-md bg-components-segmented-control-bg-normal p-0.5">
+ <div className="absolute inset-e-2 top-3 z-10 flex h-8 items-center rounded-md bg-components-segmented-control-bg-normal p-0.5">
<button
type="button"
aria-label={t(($) => $['skillManagement.detail.markdownLiveMode'])}
@@ -473,7 +473,7 @@ export function ReferenceFilesPicker({
{currentDirectory && (
<button
type="button"
- className="flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-left outline-hidden hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid"
+ className="flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-start outline-hidden hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid"
onClick={onBack}
>
<span
@@ -494,7 +494,7 @@ export function ReferenceFilesPicker({
key={referenceFile.path}
type="button"
className={cn(
- 'flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-left outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid',
+ 'flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-start outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid',
selected && 'bg-state-base-hover',
)}
onMouseEnter={() => onSelectIndex(index)}
@@ -684,11 +684,11 @@ export function MarkdownSourceEditor({
<div className="relative h-full overflow-hidden bg-background-default">
<div
aria-hidden
- className="pointer-events-none absolute inset-y-0 left-0 w-10 overflow-hidden bg-background-default pt-1.5 text-right font-mono text-[13px]/[22px] text-text-quaternary"
+ className="pointer-events-none absolute inset-y-0 inset-s-0 w-10 overflow-hidden bg-background-default pt-1.5 text-end font-mono text-[13px]/[22px] text-text-quaternary"
>
<div style={{ transform: `translateY(${-scrollTop}px)` }}>
{Array.from({ length: lineCount }, (_, index) => (
- <div key={index} className="h-5.5 pr-2">
+ <div key={index} className="h-5.5 pe-2">
{String(index + 1).padStart(2, '0')}
</div>
))}
@@ -702,7 +702,7 @@ export function MarkdownSourceEditor({
wrap="off"
spellCheck={false}
className={cn(
- 'h-full w-full resize-none bg-transparent py-1.5 pr-20 pl-10 text-[14px]/[22px] text-text-primary outline-hidden read-only:text-text-secondary',
+ 'h-full w-full resize-none bg-transparent py-1.5 ps-10 pe-20 text-[14px]/[22px] text-text-primary outline-hidden read-only:text-text-secondary',
styles.sourceTextarea,
)}
onBlur={() => setFocused(false)}
@@ -723,7 +723,7 @@ export function MarkdownSourceEditor({
{showPlaceholder && (
<EditorPlaceholder
text={placeholder}
- className="absolute left-10 text-[14px]/[22px]"
+ className="absolute inset-s-10 text-[14px]/[22px]"
style={{ top: 6 + currentLine.lineIndex * 22 - scrollTop }}
/>
)}
@@ -1105,14 +1105,14 @@ export function CsvTablePreview({ rows }: { rows: string[][] }) {
</button>
</div>
<div className="min-h-0 flex-1 overflow-auto">
- <table className="min-w-full border-separate border-spacing-0 border-t border-l border-divider-subtle text-left">
+ <table className="min-w-full border-separate border-spacing-0 border-s border-t border-divider-subtle text-start">
<thead className="sticky top-0 z-10 bg-background-section">
<tr>
{headers.map((header, index) => (
<th
key={columnKeys[index]}
scope="col"
- className="h-7 max-w-72 min-w-32 border-r border-b border-divider-subtle px-2 py-1 system-xs-medium text-text-secondary"
+ className="h-7 max-w-72 min-w-32 border-e border-b border-divider-subtle px-2 py-1 text-start system-xs-medium text-text-secondary"
>
<span className="block truncate" title={header || undefined}>
{header || `#${index + 1}`}
@@ -1130,7 +1130,7 @@ export function CsvTablePreview({ rows }: { rows: string[][] }) {
return (
<td
key={columnKey}
- className="h-7 max-w-72 min-w-32 border-r border-b border-divider-subtle px-2 py-1 align-top system-xs-regular text-text-secondary"
+ className="h-7 max-w-72 min-w-32 border-e border-b border-divider-subtle px-2 py-1 align-top system-xs-regular text-text-secondary"
>
<span
className="block wrap-break-word whitespace-pre-wrap"