Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Changed the email template subject to a multi-line field

Damian Legawiecc4d9d774adac
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/settings/emails/templates/$templateId.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/settings/emails/templates/$templateId.tsx
index fe23c89233..d86b8320c8 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/settings/emails/templates/$templateId.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/settings/emails/templates/$templateId.tsx
@@ -21,7 +21,6 @@ import {
ErrorState,
Field,
FieldLabel,
- Input,
ResourceLayout,
Select,
SelectContent,
@@ -29,6 +28,7 @@ import {
SelectTrigger,
SelectValue,
Skeleton,
+ Textarea,
toastManager,
useConfirm,
} from '@spree/dashboard-ui'
@@ -453,8 +453,10 @@ function EmailTemplateEditor({
<FieldLabel htmlFor="email-template-subject">
{t('admin.email_templates.editor.subject')}
</FieldLabel>
- <Input
+ <Textarea
id="email-template-subject"
+ rows={2}
+ className="min-h-0 resize-y font-mono text-sm"
value={subject}
readOnly={!canEdit}
onChange={(event) => editSubject(event.target.value)}