Files
zulip/web/templates/status_emoji.hbs
Anders Kaseorg 36b8462796 status_emoji: Remove extra space with Handlebars whitespace control.
This gets rendered into a comma-separated list, and the extra space
was ending up before the comma.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-28 09:11:09 -07:00

13 lines
655 B
Handlebars

{{~#if . ~}}
{{~#if emoji_alt_code ~}}
<span class="emoji_alt_code">&nbsp;:{{emoji_name}}:</span>
{{~else if still_url ~}}
<img src="{{still_url}}" class="emoji status-emoji status-emoji-name" data-animated-url="{{url}}" data-still-url="{{still_url}}" data-tippy-content=":{{emoji_name}}:" />
{{~else if url ~}}
{{~!-- note that we have no still_url --~}}
<img src="{{url}}" class="emoji status-emoji status-emoji-name" data-animated-url="{{url}}" data-tippy-content=":{{emoji_name}}:" />
{{~else if emoji_name ~}}
<span class="emoji status-emoji status-emoji-name emoji-{{emoji_code}}" data-tippy-content=":{{emoji_name}}:"></span>
{{~/if ~}}
{{~/if ~}}