From 6ee88a86bd32cfaa34ceb8dee140c00e629172b8 Mon Sep 17 00:00:00 2001 From: "Zimin A.N." Date: Wed, 13 May 2026 11:45:29 +0300 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=20schema=20draft=20drawer=20=E2=80=94=20RU=20label=20?= =?UTF-8?q?+=20flow=20row?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User feedback (screenshot): 'Approve' остался английским в RU локали + 'Отозвать' улетал на отдельную строку справа из-за ml-auto. Fix: - i18n.ts: 'workflow.schemaDraft.actions.approve' default 'Approve' → 'Одобрить'. EN остался 'Approve'. - SchemaDraftDrawer.tsx: убрал ml-auto на withdraw button. Раньше это force pushed его в конец строки → flex-wrap отправлял на новую строку правым краем. Сейчас withdraw сидит сразу после reject в той же flow-row, с danger color для визуальной distinction. На узком экране всё ещё wrap'нется естественно (без 'плавающего' alignment). --- ordinis-admin-ui/src/components/workflow/SchemaDraftDrawer.tsx | 2 +- ordinis-admin-ui/src/i18n.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ordinis-admin-ui/src/components/workflow/SchemaDraftDrawer.tsx b/ordinis-admin-ui/src/components/workflow/SchemaDraftDrawer.tsx index ad88987..1a3d533 100644 --- a/ordinis-admin-ui/src/components/workflow/SchemaDraftDrawer.tsx +++ b/ordinis-admin-ui/src/components/workflow/SchemaDraftDrawer.tsx @@ -519,7 +519,7 @@ function DraftActions({ size="sm" onClick={onWithdraw} disabled={disabled} - className="ml-auto text-danger hover:text-danger" + className="text-danger hover:text-danger" leftIcon={} > {t('workflow.schemaDraft.actions.withdraw', { defaultValue: 'Отозвать' })} diff --git a/ordinis-admin-ui/src/i18n.ts b/ordinis-admin-ui/src/i18n.ts index ae03752..3a358f9 100644 --- a/ordinis-admin-ui/src/i18n.ts +++ b/ordinis-admin-ui/src/i18n.ts @@ -537,7 +537,7 @@ i18n 'workflow.schemaDraft.comment.notePlaceholder': 'На что обратить внимание ревьюеру', 'workflow.schemaDraft.actions.submit': 'Отправить на ревью', 'workflow.schemaDraft.actions.resubmit': 'Доработать и отправить', - 'workflow.schemaDraft.actions.approve': 'Approve', + 'workflow.schemaDraft.actions.approve': 'Одобрить', 'workflow.schemaDraft.actions.requestChanges': 'Запросить правки', 'workflow.schemaDraft.actions.reject': 'Отклонить', 'workflow.schemaDraft.actions.publish': 'Опубликовать',