public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Web] mobile devices - scroll window to opened tab
This feature was in versions before BS5 Signed-off-by: Kristian Feldsam <[email protected]>
d0ba061f
data/web/js/build/013-mailcow.js | 11 +++++++++++
1 file changed, 11 insertions(+)
Diff
diff --git a/data/web/js/build/013-mailcow.js b/data/web/js/build/013-mailcow.js
index 6291c8b4..ead4934e 100644
--- a/data/web/js/build/013-mailcow.js
+++ b/data/web/js/build/013-mailcow.js
@@ -125,6 +125,17 @@ $(document).ready(function() {
}
});
})();
+
+ // responsive tabs, scroll to opened tab
+ $(document).on("shown.bs.collapse shown.bs.tab", function (e) {
+ var target = $(e.target);
+ if($(window).width() <= 767) {
+ var offset = target.offset().top - 60;
+ $("html, body").stop().animate({
+ scrollTop: offset
+ }, 100);
+ }
+ });
// IE fix to hide scrollbars when table body is empty
$('tbody').filter(function (index) {