From 5b48385919fd7fbbfefba88bf1d93d4a9e8db92f Mon Sep 17 00:00:00 2001 From: veryevilhuman <@> Date: Thu, 18 Sep 2025 18:54:41 +0300 Subject: [PATCH 1/2] ux: improve responsiveness on small widths for auto-approve button - + Add Russian i18n string --- .../components/chat/AutoApproveDropdown.tsx | 23 ++++++++++++++----- webview-ui/src/i18n/locales/en/chat.json | 3 ++- webview-ui/src/i18n/locales/ru/chat.json | 3 ++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/webview-ui/src/components/chat/AutoApproveDropdown.tsx b/webview-ui/src/components/chat/AutoApproveDropdown.tsx index 08e4a90f6bb..914da56dab9 100644 --- a/webview-ui/src/components/chat/AutoApproveDropdown.tsx +++ b/webview-ui/src/components/chat/AutoApproveDropdown.tsx @@ -173,24 +173,35 @@ export const AutoApproveDropdown = ({ disabled = false, triggerClassName = "" }: "inline-flex items-center gap-1.5 relative whitespace-nowrap px-1.5 py-1 text-xs", "bg-transparent border border-[rgba(255,255,255,0.08)] rounded-md text-vscode-foreground", "transition-all duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-vscode-focusBorder focus-visible:ring-inset", + "max-[400px]:shrink-0", disabled ? "opacity-50 cursor-not-allowed" : "opacity-90 hover:opacity-100 hover:bg-[rgba(255,255,255,0.03)] hover:border-[rgba(255,255,255,0.15)] cursor-pointer", triggerClassName, )}> - {!effectiveAutoApprovalEnabled ? ( - - ) : ( - - )} + + + {!effectiveAutoApprovalEnabled ? ( + + ) : ( + + )} + - + {!effectiveAutoApprovalEnabled ? t("chat:autoApprove.triggerLabelOff") : enabledCount === totalCount ? t("chat:autoApprove.triggerLabelAll") : t("chat:autoApprove.triggerLabel", { count: enabledCount })} + + {!effectiveAutoApprovalEnabled + ? t("chat:autoApprove.triggerLabelOffShort") + : enabledCount === totalCount + ? t("chat:autoApprove.triggerLabelAll") + : enabledCount} + Date: Mon, 20 Oct 2025 14:08:03 -0600 Subject: [PATCH 2/2] i18n: add short off label for trigger in multiple languages --- webview-ui/src/i18n/locales/ca/chat.json | 3 ++- webview-ui/src/i18n/locales/de/chat.json | 3 ++- webview-ui/src/i18n/locales/es/chat.json | 3 ++- webview-ui/src/i18n/locales/fr/chat.json | 3 ++- webview-ui/src/i18n/locales/hi/chat.json | 3 ++- webview-ui/src/i18n/locales/id/chat.json | 3 ++- webview-ui/src/i18n/locales/it/chat.json | 3 ++- webview-ui/src/i18n/locales/ja/chat.json | 3 ++- webview-ui/src/i18n/locales/ko/chat.json | 3 ++- webview-ui/src/i18n/locales/nl/chat.json | 3 ++- webview-ui/src/i18n/locales/pl/chat.json | 3 ++- webview-ui/src/i18n/locales/pt-BR/chat.json | 3 ++- webview-ui/src/i18n/locales/tr/chat.json | 3 ++- webview-ui/src/i18n/locales/vi/chat.json | 3 ++- webview-ui/src/i18n/locales/zh-CN/chat.json | 3 ++- webview-ui/src/i18n/locales/zh-TW/chat.json | 3 ++- 16 files changed, 32 insertions(+), 16 deletions(-) diff --git a/webview-ui/src/i18n/locales/ca/chat.json b/webview-ui/src/i18n/locales/ca/chat.json index 96b5dacfce7..073c00047d9 100644 --- a/webview-ui/src/i18n/locales/ca/chat.json +++ b/webview-ui/src/i18n/locales/ca/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 aprovacions automàtiques", "triggerLabel_one": "1 aprovació automàtica", "triggerLabel_other": "{{count}} aprovacions automàtiques", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "No" }, "reasoning": { "thinking": "Pensant", diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json index 4af514b5836..03328a97051 100644 --- a/webview-ui/src/i18n/locales/de/chat.json +++ b/webview-ui/src/i18n/locales/de/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 automatisch genehmigt", "triggerLabel_one": "1 automatisch genehmigt", "triggerLabel_other": "{{count}} automatisch genehmigt", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Aus" }, "reasoning": { "thinking": "Denke nach", diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json index 6dc17706e34..74690cb6664 100644 --- a/webview-ui/src/i18n/locales/es/chat.json +++ b/webview-ui/src/i18n/locales/es/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 aprobaciones automáticas", "triggerLabel_one": "1 aprobación automática", "triggerLabel_other": "{{count}} aprobaciones automáticas", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "No" }, "reasoning": { "thinking": "Pensando", diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json index 053ebdcae11..72f26cc1487 100644 --- a/webview-ui/src/i18n/locales/fr/chat.json +++ b/webview-ui/src/i18n/locales/fr/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 approuvé automatiquement", "triggerLabel_one": "1 approuvé automatiquement", "triggerLabel_other": "{{count}} approuvés automatiquement", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Non" }, "reasoning": { "thinking": "Réflexion", diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json index a82ad90585c..1118e67bd1f 100644 --- a/webview-ui/src/i18n/locales/hi/chat.json +++ b/webview-ui/src/i18n/locales/hi/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 स्वतः-अनुमोदन", "triggerLabel_one": "1 स्वतः-अनुमोदित", "triggerLabel_other": "{{count}} स्वतः-अनुमोदित", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "बंद" }, "reasoning": { "thinking": "विचार कर रहा है", diff --git a/webview-ui/src/i18n/locales/id/chat.json b/webview-ui/src/i18n/locales/id/chat.json index 6c6d59474ec..bc9c6ed2e47 100644 --- a/webview-ui/src/i18n/locales/id/chat.json +++ b/webview-ui/src/i18n/locales/id/chat.json @@ -287,7 +287,8 @@ "triggerLabel_zero": "0 disetujui otomatis", "triggerLabel_one": "1 disetujui otomatis", "triggerLabel_other": "{{count}} disetujui otomatis", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Tidak" }, "announcement": { "title": "🎉 Roo Code {{version}} Dirilis", diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json index 9ec5df2a769..86bf1a18bfd 100644 --- a/webview-ui/src/i18n/locales/it/chat.json +++ b/webview-ui/src/i18n/locales/it/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 approvati automaticamente", "triggerLabel_one": "1 approvato automaticamente", "triggerLabel_other": "{{count}} approvati automaticamente", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "No" }, "reasoning": { "thinking": "Sto pensando", diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json index 4354772c6f3..61dbd149c9d 100644 --- a/webview-ui/src/i18n/locales/ja/chat.json +++ b/webview-ui/src/i18n/locales/ja/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0個の自動承認", "triggerLabel_one": "1個の自動承認済み", "triggerLabel_other": "{{count}}個の自動承認済み", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "オフ" }, "reasoning": { "thinking": "考え中", diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json index 3b695f8fba9..1eeab8801da 100644 --- a/webview-ui/src/i18n/locales/ko/chat.json +++ b/webview-ui/src/i18n/locales/ko/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0개 자동 승인됨", "triggerLabel_one": "1개 자동 승인됨", "triggerLabel_other": "{{count}}개 자동 승인됨", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "끔" }, "reasoning": { "thinking": "생각 중", diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json index c0889a8ca58..e47c67793a7 100644 --- a/webview-ui/src/i18n/locales/nl/chat.json +++ b/webview-ui/src/i18n/locales/nl/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 automatisch goedgekeurd", "triggerLabel_one": "1 automatisch goedgekeurd", "triggerLabel_other": "{{count}} automatisch goedgekeurd", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Uit" }, "announcement": { "title": "🎉 Roo Code {{version}} uitgebracht", diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json index 3c97c4d7d20..74d132ee887 100644 --- a/webview-ui/src/i18n/locales/pl/chat.json +++ b/webview-ui/src/i18n/locales/pl/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 automatycznie zatwierdzone", "triggerLabel_one": "1 automatycznie zatwierdzony", "triggerLabel_other": "{{count}} automatycznie zatwierdzonych", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Wył." }, "reasoning": { "thinking": "Myślenie", diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json index ca9460cc760..d89ffb55f35 100644 --- a/webview-ui/src/i18n/locales/pt-BR/chat.json +++ b/webview-ui/src/i18n/locales/pt-BR/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 aprovados automaticamente", "triggerLabel_one": "1 aprovado automaticamente", "triggerLabel_other": "{{count}} aprovados automaticamente", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Não" }, "reasoning": { "thinking": "Pensando", diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json index dddcab46408..acb09a96cce 100644 --- a/webview-ui/src/i18n/locales/tr/chat.json +++ b/webview-ui/src/i18n/locales/tr/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 otomatik onaylandı", "triggerLabel_one": "1 otomatik onaylandı", "triggerLabel_other": "{{count}} otomatik onaylandı", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Kapalı" }, "reasoning": { "thinking": "Düşünüyor", diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json index b14dc02a1cf..76e8d36c727 100644 --- a/webview-ui/src/i18n/locales/vi/chat.json +++ b/webview-ui/src/i18n/locales/vi/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 được tự động phê duyệt", "triggerLabel_one": "1 được tự động phê duyệt", "triggerLabel_other": "{{count}} được tự động phê duyệt", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "Tắt" }, "reasoning": { "thinking": "Đang suy nghĩ", diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json index d09909239b2..dc3007d8992 100644 --- a/webview-ui/src/i18n/locales/zh-CN/chat.json +++ b/webview-ui/src/i18n/locales/zh-CN/chat.json @@ -260,7 +260,8 @@ "triggerLabel_zero": "0 个自动批准", "triggerLabel_one": "1 个自动批准", "triggerLabel_other": "{{count}} 个自动批准", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "关闭" }, "reasoning": { "thinking": "思考中", diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json index f09a66f785a..3df3d42ae88 100644 --- a/webview-ui/src/i18n/locales/zh-TW/chat.json +++ b/webview-ui/src/i18n/locales/zh-TW/chat.json @@ -284,7 +284,8 @@ "triggerLabel_zero": "0 個自動核准", "triggerLabel_one": "1 個自動核准", "triggerLabel_other": "{{count}} 個自動核准", - "triggerLabelAll": "YOLO" + "triggerLabelAll": "YOLO", + "triggerLabelOffShort": "關閉" }, "announcement": { "title": "🎉 Roo Code {{version}} 已發布",