summaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-12-02 09:56:40 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-12-02 09:56:40 -0500
commit89731e9ef107fd633a20af2acfbe397d51312ac4 (patch)
tree6c7ee853c1515cc7c6a4aa6bf480884072f65405 /web/templates
parent7308569375159134d0f8651cec94b3f9c706604a (diff)
downloadchat-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')
-rw-r--r--web/templates/channel.html10
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>