refactor(rundown): cap rundown names to 64 characters

This commit is contained in:
Carlos Valente
2026-08-02 12:24:20 +02:00
committed by Carlos Valente
parent 514b6c3a02
commit 608247157b
3 changed files with 14 additions and 4 deletions
@@ -46,7 +46,7 @@ export function ManageRundownForm({ onClose }: ManageRundownForm) {
<Panel.Section>
<label>
<Panel.Description>Rundown title</Panel.Description>
<Input {...register('title')} fluid placeholder='Your rundown name' />
<Input {...register('title')} maxLength={64} fluid placeholder='Your rundown name' />
</label>
</Panel.Section>
<Panel.InlineElements relation='inner' align='end'>
@@ -59,6 +59,7 @@ export default function RundownRenameForm({ onSubmit, onCancel, initialTitle }:
return true;
},
})}
maxLength={64}
fluid
/>
{errors.title && <Panel.Error>{errors.title.message}</Panel.Error>}