diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-11-04 01:01:22 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-11-04 18:07:23 +0500 |
commit | e4f7ed3ab12f3cd49289f842324aae6a178f6b8e (patch) | |
tree | 3371e34e226a0f51cb95780272102eceb922ef05 | |
parent | 25e6e9aca7be87541bfc396f2c53e3ed316e834d (diff) | |
download | chat-e4f7ed3ab12f3cd49289f842324aae6a178f6b8e.tar.gz chat-e4f7ed3ab12f3cd49289f842324aae6a178f6b8e.tar.bz2 chat-e4f7ed3ab12f3cd49289f842324aae6a178f6b8e.zip |
Updating modal-body max-height if it exceeds more than 1200px
-rw-r--r-- | web/templates/channel.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/templates/channel.html b/web/templates/channel.html index 63fe38587..aabd01ecb 100644 --- a/web/templates/channel.html +++ b/web/templates/channel.html @@ -37,7 +37,12 @@ <script> window.setup_channel_page({{ .Props }}); $('body').tooltip( {selector: '[data-toggle=tooltip]'} ); - $('.modal-body').css('max-height', $(window).height() - 200); + if($(window).height() > 1200){ + $('.modal-body').css('max-height', 1000); + } + else { + $('.modal-body').css('max-height', $(window).height() - 200); + } $('.modal-body').perfectScrollbar(); </script> </body> |