nodebb-theme-harmony 2.0.0-pre.37 → 2.0.0-pre.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.0.0-pre.37",
3
+ "version": "2.0.0-pre.38",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -72,7 +72,7 @@ $(document).ready(function () {
72
72
  return !!$('[component="bottombar"] [component="sidebar/search"] .search-dropdown.show').length;
73
73
  }
74
74
 
75
- let lastScrollTop = 0;
75
+ let lastScrollTop = $window.scrollTop();
76
76
  let newPostsLoaded = false;
77
77
 
78
78
  function onWindowScroll() {
@@ -86,7 +86,7 @@ $(document).ready(function () {
86
86
  const diff = Math.abs(st - lastScrollTop);
87
87
  const scrolledDown = st > lastScrollTop;
88
88
  const scrolledUp = st < lastScrollTop;
89
- if (diff > 5) {
89
+ if (diff > 10) {
90
90
  bottomBar.css({
91
91
  bottom: !scrolledUp && scrolledDown ?
92
92
  -bottomBar.find('.bottombar-nav').outerHeight(true) :
@@ -115,8 +115,10 @@ $(document).ready(function () {
115
115
  });
116
116
  hooks.on('action:ajaxify.end', function () {
117
117
  $window.off('scroll', delayedScroll);
118
- bottomBar.css({ bottom: 0 });
119
- setTimeout(enableAutohide, 250);
118
+ if (config.theme.autohideBottombar) {
119
+ bottomBar.css({ bottom: 0 });
120
+ setTimeout(enableAutohide, 250);
121
+ }
120
122
  });
121
123
  });
122
124
  }
@@ -0,0 +1 @@
1
+ <!-- IMPORT account/topics.tpl -->
@@ -25,6 +25,7 @@
25
25
  <a href="{config.relative_path}/user/{userslug}/topics" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/topics }}}active{{{ end }}}">[[global:header.recent]]</a>
26
26
  <a href="{config.relative_path}/user/{userslug}/watched"class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/watched }}}active{{{ end }}}">[[user:watched]]</a>
27
27
  <a href="{config.relative_path}/user/{userslug}/ignored" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/ignored }}}active{{{ end }}}">[[user:ignored]]</a>
28
+ <a href="{config.relative_path}/user/{userslug}/read" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/read }}}active{{{ end }}}">[[user:read]]</a>
28
29
  {{{ end }}}
29
30
  </div>
30
31
  </div>
@@ -16,12 +16,12 @@
16
16
  {{{ end }}}
17
17
  {{{ if !config.hideSubCategories }}}
18
18
  {{{ if ./children.length }}}
19
- <div class="category-children row row-cols-2 g-2 my-1 w-100">
19
+ <div class="category-children row row-cols-1 row-cols-md-2 g-2 my-1 w-100">
20
20
  {{{ each ./children }}}
21
21
  {{{ if !./isSection }}}
22
22
  <span class="category-children-item small">
23
23
  <div class="d-flex align-items-center gap-1">
24
- <i class="fa fa-fw fa-caret-right text-primary"></i>
24
+ <i class="fa fa-fw fa-caret-right text-primary align-self-start" style="line-height: var(--bs-body-line-height);"></i>
25
25
  <a href="{{{ if ./link }}}{./link}{{{ else }}}{config.relative_path}/category/{./slug}{{{ end }}}" class="text-reset fw-semibold">{./name}</a>
26
26
  </div>
27
27
  </span>