Skip to content

Commit 718b456

Browse files
committed
feat(subscription): replace Input with Textarea for announce field in subscription settings
1 parent a85f8ef commit 718b456

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dashboard/src/pages/_dashboard.settings.subscriptions.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Input } from '@/components/ui/input'
77
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
88
import { Separator } from '@/components/ui/separator'
99
import { Switch } from '@/components/ui/switch'
10+
import { Textarea } from '@/components/ui/textarea'
1011
import { VariablesPopover } from '@/components/ui/variables-popover'
1112
import useDirDetection from '@/hooks/use-dir-detection'
1213
import { ConfigFormat } from '@/service/api'
@@ -938,7 +939,13 @@ export default function SubscriptionSettings() {
938939
{t('settings.subscriptions.general.announce')}
939940
</FormLabel>
940941
<FormControl>
941-
<Input maxLength={128} placeholder={t('settings.subscriptions.general.announcePlaceholder')} {...field} />
942+
<Textarea
943+
maxLength={128}
944+
placeholder={t('settings.subscriptions.general.announcePlaceholder')}
945+
rows={3}
946+
className="resize-none"
947+
{...field}
948+
/>
942949
</FormControl>
943950
<FormDescription className="text-sm text-muted-foreground">{t('settings.subscriptions.general.announceDescription')}</FormDescription>
944951
<FormMessage />

0 commit comments

Comments
 (0)