Blank space to the right of mentions made through API with mentions_list

When creating an update with a mention through the API with mentions_list, the resulting update includes a light gray rectangle of blank space directly on the right edge of the mention. This happens regardless of which board it is on, and who is being mentioned.

image

Interestingly, if you edit the update, make no changes, and save it, the blank space vanishes. Is there a way around this blank space being automatically added? I know there are other ways to visually simulate a mention, but they don’t send notifications. I would like to avoid having to have one mention (for aesthetics) directly followed by another mention of the same person (for functionality) if possible.

Also, it would be nice to be able to have the mention in between 2 substrings of text (rather than always having it at the end); this seems like it should be possible since, when you add an update through the UI, the mention can go anywhere in the text. Although I understand this may not be possible yet, the main issue is I would like to get rid of the strange blank space that appears next to the mention. Any help would be appreciated. Thanks!

I’ve noticed this too that blank gray space next to API mentions can be annoying. As you found, editing and saving removes it, but that’s not ideal for automated updates. Right now, there isn’t a perfect fix via the API, but some folks work around it by adding a zero-width character or a small invisible character after the mention to prevent the space.

Tracking these quirks in Phonexa helps me remember which boards or setups had the issue, so you don’t run into the same surprises repeatedly. Hopefully Monday updates the API to handle mentions more like the UI soon.

1 Like

Hi, thanks for replying! This sounds promising, I would be fine with that method if it works, but I haven’t found a way to add anything after the mention, how would I do that? When I use mentions_list, it always places the mention after all other text. Are you adding the mention in a different way? And if so, does it still trigger a notification? (This part is important - I know I could trigger one with an automation, but it needs to be triggered by the user so whoever receives the notification will know who it’s from, and it won’t just say “Automation” as the sender.) Thanks!