mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
This moves the content inside `message_length_controller` to a new handlerbars template `message_length_toggle.hbs`, and dynamically renders the content based on the message length. Since the majority of the messages aren't collapsed/condensed, this change should improve the initial rendering of the message list. Fixes #31133.
6 lines
467 B
Handlebars
6 lines
467 B
Handlebars
{{#if (eq toggle_type "expander")}}
|
|
<button type="button" class="message_expander message_length_toggle tippy-zulip-delayed-tooltip" data-tooltip-template-id="message-expander-tooltip-template">{{t "Show more" }}</button>
|
|
{{else if (eq toggle_type "condenser")}}
|
|
<button type="button" class="message_condenser message_length_toggle tippy-zulip-delayed-tooltip" data-tooltip-template-id="message-condenser-tooltip-template">{{t "Show less" }}</button>
|
|
{{/if}}
|