Skip to content

fix: prevent trailing space in formatting toolbar tooltips - #1400

Open
swarnendusahu10-dotcom wants to merge 1 commit into
RocketChat:developfrom
swarnendusahu10-dotcom:fix/issue-1280-tooltip-trailing-space
Open

swarnendusahu10-dotcom wants to merge 1 commit into
RocketChat:developfrom
swarnendusahu10-dotcom:fix/issue-1280-tooltip-trailing-space

Conversation

@swarnendusahu10-dotcom

Copy link
Copy Markdown
Contributor

Summary

Closes #1280.

Fixes an issue where formatting items without a keyboard shortcut (such as strike, code, and multiline) rendered a trailing whitespace in their tooltip text due to an unconditional space in the template literal.

Description

In ChatInputFormattingToolbar.js, the tooltip text was constructed using:

text={`${item.name} ${item.shortcut && `(${item.shortcut})`}`}

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Tooltip shows trailing space for formatters without keyboard shortcut

1 participant