add tags to kanban board

This commit is contained in:
Flatlogic Bot 2025-05-31 23:43:11 +00:00
parent 63c96a91c6
commit b2ee2ada2c
4 changed files with 22 additions and 4 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
node_modules/ node_modules/
*/node_modules/ */node_modules/
*/build/ */build/
**/node_modules/
**/build/
.DS_Store
.env

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{}

View File

@ -56,6 +56,19 @@ const KanbanCard = ({
className={'w-2 h-2 text-white'} className={'w-2 h-2 text-white'}
iconClassName={'w-5'} iconClassName={'w-5'}
/> />
{item.tags?.length > 0 && (
<div className="mt-2 flex flex-wrap">
{item.tags.map(tag => (
<span
key={tag.id}
className="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full mr-1 mb-1"
>
{tag.name}
</span>
))}
</div>
)}
</div> </div>
</div> </div>
); );