diff --git a/components/contacts/contact-form.tsx b/components/contacts/contact-form.tsx index 6543febe6..df0b837e5 100644 --- a/components/contacts/contact-form.tsx +++ b/components/contacts/contact-form.tsx @@ -698,7 +698,7 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress
{error && ( -
+
{error}
)} @@ -716,6 +716,8 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress name={previewName || undefined} email={previewEmail || undefined} contactPhoto={previewPhoto} + // Nothing typed yet: a neutral circle, not a coloured "?". + fallbackColor={previewName || previewEmail ? undefined : "var(--color-muted-foreground)"} size="lg" className="!w-20 !h-20 !text-xl" /> @@ -737,7 +739,7 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress

{t("photo_hint")}

{photoError && ( -

{photoError}

+

{photoError}

)} {previewPhoto && (
setGivenName(e.target.value)} placeholder={t("given_name")} autoFocus />
setSurname(e.target.value)} placeholder={t("surname")} />
@@ -869,7 +871,7 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress }} onBlur={() => handleEmailBlur(i, entry.address)} placeholder={t("email_placeholder")} - className={cn("flex-1", emailErrors[i] && "border-red-500 focus:ring-red-500")} + className={cn("flex-1", emailErrors[i] && "border-destructive focus-visible:border-destructive")} />