fix(frontend): constrain auto-import dialog width and rename duplicate filter label

- TemplatesPage: cap auto-import dialog at sm:max-w-md so it no longer
  spans the full screen (bare DialogContent defaults to near-full width).
- InstancesPage: the server (multi-server/cluster) filter wrongly reused
  the `instances.all_nodes` i18n key, so it rendered "Все узлы" identically
  to the node filter. Add a dedicated `instances.all_servers` key (RU/EN)
  and use it, so the two filters read "Все серверы" / "Все узлы".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-13 06:44:23 +05:00
parent 50f2ee1966
commit 0e85d56c99
4 changed files with 4 additions and 2 deletions

View File

@@ -716,7 +716,7 @@ export default function InstancesPage() {
<SelectValue placeholder={t('backups.select_server', 'Server')} />
</SelectTrigger>
<SelectContent>
<SelectItem value="all">{t('instances.all_nodes', 'All servers')}</SelectItem>
<SelectItem value="all">{t('instances.all_servers', 'All servers')}</SelectItem>
{servers.map((s) => (
<SelectItem key={s.id} value={String(s.id)}>{s.name}</SelectItem>
))}

View File

@@ -141,7 +141,7 @@ export default function TemplatesPage() {
{/* Import Dialog */}
<Dialog open={importDialogOpen} onOpenChange={setImportDialogOpen}>
<DialogContent>
<DialogContent className="sm:max-w-md">
<DialogHeader>
<DialogTitle>{t('templates.auto_import')}</DialogTitle>
</DialogHeader>

View File

@@ -122,6 +122,7 @@
"search_placeholder": "Search by name, IP, or VMID...",
"all_statuses": "All statuses",
"all_nodes": "All nodes",
"all_servers": "All servers",
"no_instances": "No instances found",
"try_other_search": "Try a different search query",
"create_first": "Create your first instance",

View File

@@ -122,6 +122,7 @@
"search_placeholder": "Поиск по имени, IP или VMID...",
"all_statuses": "Все статусы",
"all_nodes": "Все узлы",
"all_servers": "Все серверы",
"no_instances": "Инстансы не найдены",
"try_other_search": "Попробуйте другой поисковый запрос",
"create_first": "Создайте свой первый инстанс",