From 08d76cc8ade041dbbc0d8fad7bda26b3d77e29f2 Mon Sep 17 00:00:00 2001 From: joe-mcgee Date: Thu, 22 Feb 2018 23:53:07 -0700 Subject: [PATCH 01/20] fixed popovers no scroll if they overflow the window --- .../rocketchat-theme/client/imports/components/popover.css | 7 +++++++ packages/rocketchat-ui/client/views/app/popover.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/packages/rocketchat-theme/client/imports/components/popover.css b/packages/rocketchat-theme/client/imports/components/popover.css index 3353ee43fb13..b78946354302 100644 --- a/packages/rocketchat-theme/client/imports/components/popover.css +++ b/packages/rocketchat-theme/client/imports/components/popover.css @@ -65,6 +65,13 @@ } } + &__content-scroll { + + .rc-popover__item { + display:block; + } + } + &__title { flex: 1; diff --git a/packages/rocketchat-ui/client/views/app/popover.js b/packages/rocketchat-ui/client/views/app/popover.js index f53f2452ca56..1a04ec3171cb 100644 --- a/packages/rocketchat-ui/client/views/app/popover.js +++ b/packages/rocketchat-ui/client/views/app/popover.js @@ -84,6 +84,13 @@ Template.popover.onRendered(function() { }); } + const realTop = Number(popoverContent.style.top.replace('px', '')); + if (realTop + popoverContent.offsetHeight > window.innerHeight) { + popoverContent.style.overflow = 'scroll'; + popoverContent.style.bottom = 0; + popoverContent.className = 'rc-popover__content rc-popover__content-scroll'; + } + if (activeElement) { $(activeElement).addClass('active'); } From 2b231cd9a6c7a8e14a6d28642c101c78a1d66369 Mon Sep 17 00:00:00 2001 From: Sumedh Nimkarde Date: Fri, 23 Feb 2018 19:19:13 +0530 Subject: [PATCH 02/20] feat: Show the user status in the userInfo tab --- packages/rocketchat-ui-flextab/client/tabs/userInfo.html | 4 ++++ packages/rocketchat-ui-flextab/client/tabs/userInfo.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/packages/rocketchat-ui-flextab/client/tabs/userInfo.html b/packages/rocketchat-ui-flextab/client/tabs/userInfo.html index 538d89b12a6e..4a8691bc2090 100644 --- a/packages/rocketchat-ui-flextab/client/tabs/userInfo.html +++ b/packages/rocketchat-ui-flextab/client/tabs/userInfo.html @@ -25,6 +25,10 @@

{{_ "User_Info"}}

{{#if username}}{{/if}} + +
+
{{userStatus}}
+