preview_message_area: Use simplebar scrollbar.

Add `data-simplebar` attribrute to `preview_message_area` div in
`templates/zerver/app/compose.html`.

This will cause preview_message_area div to use simplebar scrollbar
instead of normal scrollbar.

Fixes #16468.
This commit is contained in:
the-rdt 2020-10-17 12:57:20 +05:30 committed by Tim Abbott
parent b5ddf493d9
commit 03005dacdb
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@
<div> <div>
<div class="messagebox"> <div class="messagebox">
<textarea class="new_message_textarea" name="content" id='compose-textarea' placeholder="{{ _('Compose your message here') }}" tabindex="0" maxlength="10000" aria-label="{{ _('Compose your message here...') }}"></textarea> <textarea class="new_message_textarea" name="content" id='compose-textarea' placeholder="{{ _('Compose your message here') }}" tabindex="0" maxlength="10000" aria-label="{{ _('Compose your message here...') }}"></textarea>
<div class="scrolling_list preview_message_area" id="preview_message_area" style="display:none;"> <div class="scrolling_list preview_message_area" data-simplebar id="preview_message_area" style="display:none;">
<div id="markdown_preview_spinner"></div> <div id="markdown_preview_spinner"></div>
<div id="preview_content" class="preview_content rendered_markdown"></div> <div id="preview_content" class="preview_content rendered_markdown"></div>
</div> </div>