Skip to content

Warn user when description approaches word limit 📝 #512

Description

@anoopcodehack

Warn user when description approaches word limit 📝

File: client/src/components/Task/TaskModal.jsx

Character counter exists but no color
warning when approaching limit 💀 fr!!

Fix: change counter color based on count:
<span className={text-[10px] text-right transition-colors ${descCount > 250 ? 'text-red-400 font-medium' : descCount > 200 ? 'text-yellow-400' : 'text-[#555]'}}>
{descCount}/300
{descCount > 250 && ' ⚠️ almost full!'}

~6 lines! descCount already exists ✅
No backend needed 🎯
Super clear UX!! ✨

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions