nodebb-theme-persona 12.1.2 → 12.1.4

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-persona",
3
- "version": "12.1.2",
3
+ "version": "12.1.4",
4
4
  "nbbpm": {
5
5
  "compatibility": "^2.0.0"
6
6
  },
package/public/persona.js CHANGED
@@ -57,6 +57,16 @@ $(document).ready(function () {
57
57
  navbarEl.autoHidingNavbar('destroy').removeData('plugin_autoHidingNavbar');
58
58
  navbarEl.css('top', '');
59
59
 
60
+ hooks
61
+ .on('filter:navigator.scroll', (data) => {
62
+ navbarEl.autoHidingNavbar('setDisableAutohide', true);
63
+ return data;
64
+ })
65
+ .on('action:navigator.scrolled', () => {
66
+ console.warn('reenabling', navbarEl);
67
+ navbarEl.autoHidingNavbar('setDisableAutohide', false);
68
+ });
69
+
60
70
  hooks.fire('filter:persona.configureNavbarHiding', {
61
71
  resizeEnvs: preference,
62
72
  }).then(({ resizeEnvs }) => {
@@ -10,6 +10,16 @@
10
10
 
11
11
  <small class="topic-category"><a href="{config.relative_path}/category/{../category.slug}">[[global:posted_in, {../category.name}]]</a></small>
12
12
 
13
+ {{{ if ../isMainPost }}}
14
+ {{{ if ../topic.tags.length }}}
15
+ <span class="tag-list">
16
+ {{{ each ../topic.tags }}}
17
+ <a href="{config.relative_path}/tags/{topic.tags.valueEncoded}"><span class="tag tag-item tag-class-{topic.tags.class}">{topic.tags.valueEscaped}</span></a>
18
+ {{{ end }}}
19
+ </span>
20
+ {{{ end }}}
21
+ {{{ end }}}
22
+
13
23
  <div class="post-info">
14
24
  <a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(../user, "md", true, "user-img not-responsive")}</a>
15
25