Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,19 @@ const AddTagOption: FunctionComponent<Props> = ({
className={'ml-0.5 mr-1.5 h-7 w-7 text-2xl text-neutral lg:h-6 lg:w-6 lg:text-lg'}
/>
)}
<span
className={classNames(
'overflow-hidden overflow-ellipsis whitespace-nowrap',
isTagLinkedToSelectedItems(tag) ? 'font-bold' : '',
)}
>
{getTitleForLinkedTag(tag, application)?.longTitle}
</span>
<div>
<p className="overflow-hidden overflow-ellipsis whitespace-nowrap text-neutral">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this look like if the tag doesn't have a hierarchy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just an empty

! I could add conditional rendering though to make it cleaner.

Screenshot 2025-09-18 at 10 20 22 AM

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah conditional rendering would make it a bit more clear, but as-is seems fine too.

{getTitleForLinkedTag(tag, application)?.titlePrefix}
</p>
<p
className={classNames(
'overflow-hidden overflow-ellipsis whitespace-nowrap',
isTagLinkedToSelectedItems(tag) ? 'font-bold' : '',
)}
>
{tag.title}
</p>
</div>
</MenuItem>
))}
</Menu>
Expand Down
Loading