diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-02 09:56:40 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-02 09:56:40 -0500 |
commit | 89731e9ef107fd633a20af2acfbe397d51312ac4 (patch) | |
tree | 6c7ee853c1515cc7c6a4aa6bf480884072f65405 /web/templates/channel.html | |
parent | 7308569375159134d0f8651cec94b3f9c706604a (diff) | |
download | chat-89731e9ef107fd633a20af2acfbe397d51312ac4.tar.gz chat-89731e9ef107fd633a20af2acfbe397d51312ac4.tar.bz2 chat-89731e9ef107fd633a20af2acfbe397d51312ac4.zip |
Fixed suggestion list height in the edit post modal and RHS
Diffstat (limited to 'web/templates/channel.html')
-rw-r--r-- | web/templates/channel.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/templates/channel.html b/web/templates/channel.html index 7b8f6a243..8abbe36df 100644 --- a/web/templates/channel.html +++ b/web/templates/channel.html @@ -26,13 +26,13 @@ <script> window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }}, {{ .User }}); $('body').tooltip( {selector: '[data-toggle=tooltip]'} ); + var modals = $('.modal-body').not('.edit-modal-body'); if($(window).height() > 1200){ - $('.modal-body').css('max-height', 1000); + modals.css('max-height', 1000); + } else { + modals.css('max-height', $(window).height() - 200); } - else { - $('.modal-body').css('max-height', $(window).height() - 200); - } - $('.modal-body').perfectScrollbar(); + modals.perfectScrollbar(); </script> </body> </html> |