feat: enforce tighter character limits for site, funnel, and monitor names to improve UI consistency and usability

This commit is contained in:
Usman Baig
2026-02-22 20:07:00 +01:00
parent da0366603e
commit acac536590
5 changed files with 11 additions and 10 deletions

View File

@@ -122,10 +122,10 @@ export default function CreateFunnelPage() {
placeholder="e.g. Signup Flow"
autoFocus
required
maxLength={255}
maxLength={100}
/>
{name.length > 200 && (
<span className={`text-xs tabular-nums mt-1 ${name.length > 240 ? 'text-amber-500' : 'text-neutral-400'}`}>{name.length}/255</span>
{name.length > 80 && (
<span className={`text-xs tabular-nums mt-1 ${name.length > 90 ? 'text-amber-500' : 'text-neutral-400'}`}>{name.length}/100</span>
)}
</div>
<div>