From 059eb4e87c86330ac04f11d4d971e71ee113fbbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller-Wasle?= Date: Fri, 1 May 2026 23:32:52 +0200 Subject: [PATCH] bug: changeed connections configuration so input fiels do not look prefilled if they are not --- src/components/modals/NewConnectionModal.tsx | 18 +++++++++--------- src/i18n/locales/de.json | 1 + src/i18n/locales/en.json | 1 + src/i18n/locales/es.json | 1 + src/i18n/locales/fr.json | 1 + src/i18n/locales/it.json | 1 + src/i18n/locales/zh.json | 1 + 7 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/modals/NewConnectionModal.tsx b/src/components/modals/NewConnectionModal.tsx index e88ab7ad..d22d2866 100644 --- a/src/components/modals/NewConnectionModal.tsx +++ b/src/components/modals/NewConnectionModal.tsx @@ -102,7 +102,7 @@ const FieldInput = ({ autoCapitalize="off" autoComplete="off" spellCheck={false} - className="w-full px-3 py-2 bg-base border border-strong rounded-md text-sm text-primary placeholder:text-muted focus:border-blue-500 focus:outline-none transition-colors" + className="w-full px-3 py-2 bg-base border border-strong rounded-md text-sm text-primary placeholder:text-muted placeholder:italic focus:border-blue-500 focus:outline-none transition-colors" /> ); @@ -595,7 +595,7 @@ export const NewConnectionModal = ({ autoCapitalize="off" autoComplete="off" spellCheck={false} - className="flex-1 px-3 py-2 bg-base border border-strong rounded-md text-sm text-primary placeholder:text-muted focus:border-blue-500 focus:outline-none transition-colors" + className="flex-1 px-3 py-2 bg-base border border-strong rounded-md text-sm text-primary placeholder:text-muted placeholder:italic focus:border-blue-500 focus:outline-none transition-colors" placeholder={ activeDriver.capabilities.folder_based ? t("newConnection.folderPathPlaceholder") @@ -652,7 +652,7 @@ export const NewConnectionModal = ({ autoComplete="off" spellCheck={false} className={clsx( - "flex-1 px-3 py-2 bg-base border rounded-md text-sm text-primary placeholder:text-muted focus:border-blue-500 focus:outline-none transition-colors", + "flex-1 px-3 py-2 bg-base border rounded-md text-sm text-primary placeholder:text-muted placeholder:italic focus:border-blue-500 focus:outline-none transition-colors", connectionStringError ? "border-red-500" : "border-strong", )} placeholder={connectionStringPlaceholder} @@ -700,7 +700,7 @@ export const NewConnectionModal = ({ label={t("newConnection.username")} value={formData.username} onChange={(v) => updateField("username", v)} - placeholder="root" + placeholder={t("newConnection.usernamePlaceholder")} /> )} @@ -1002,7 +1002,7 @@ export const NewConnectionModal = ({ autoCapitalize="off" autoComplete="off" spellCheck={false} - className="flex-1 px-3 py-2 bg-base border border-strong rounded-md text-sm text-primary placeholder:text-muted focus:border-blue-500 focus:outline-none transition-colors" + className="flex-1 px-3 py-2 bg-base border border-strong rounded-md text-sm text-primary placeholder:text-muted placeholder:italic focus:border-blue-500 focus:outline-none transition-colors" />