nodebb-theme-persona 11.3.35 → 11.3.39

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/less/topic.less CHANGED
@@ -187,7 +187,6 @@
187
187
  [component="post/parent"] {
188
188
  border: 0;
189
189
  font-size: 10px;
190
- background-color: #f0f0f0;
191
190
  }
192
191
 
193
192
  .threaded-replies {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "11.3.35",
3
+ "version": "11.3.39",
4
4
  "nbbpm": {
5
5
  "compatibility": "^1.18.0"
6
6
  },
package/public/persona.js CHANGED
@@ -45,42 +45,49 @@ $(document).ready(function () {
45
45
  if (!$.fn.autoHidingNavbar) {
46
46
  return;
47
47
  }
48
- var env = utils.findBootstrapEnvironment();
49
- // if env didn't change don't destroy and recreate
50
- if (env === lastBSEnv) {
51
- return;
52
- }
53
- lastBSEnv = env;
54
- var navbarEl = $('.navbar-fixed-top');
55
- navbarEl.autoHidingNavbar('destroy').removeData('plugin_autoHidingNavbar');
56
- navbarEl.css('top', '');
57
-
58
- if (env === 'xs' || env === 'sm') {
59
- navbarEl.autoHidingNavbar({
60
- showOnBottom: false,
61
- });
62
- }
63
48
 
64
- function fixTopCss(topValue) {
65
- if (ajaxify.data.template.topic) {
66
- $('.topic .topic-header').css({ top: topValue });
67
- } else {
68
- var topicListHeader = $('.topic-list-header');
69
- if (topicListHeader.length) {
70
- topicListHeader.css({ top: topValue });
71
- }
49
+ require(['hooks'], (hooks) => {
50
+ var env = utils.findBootstrapEnvironment();
51
+ // if env didn't change don't destroy and recreate
52
+ if (env === lastBSEnv) {
53
+ return;
72
54
  }
73
- }
55
+ lastBSEnv = env;
56
+ var navbarEl = $('.navbar-fixed-top');
57
+ navbarEl.autoHidingNavbar('destroy').removeData('plugin_autoHidingNavbar');
58
+ navbarEl.css('top', '');
59
+
60
+ hooks.fire('filter:persona.configureNavbarHiding', {
61
+ resizeEnvs: ['xs', 'sm'],
62
+ }).then(({ resizeEnvs }) => {
63
+ if (resizeEnvs.includes(env)) {
64
+ navbarEl.autoHidingNavbar({
65
+ showOnBottom: false,
66
+ });
67
+ }
74
68
 
75
- navbarEl.off('show.autoHidingNavbar')
76
- .on('show.autoHidingNavbar', function () {
77
- fixTopCss('');
78
- });
69
+ function fixTopCss(topValue) {
70
+ if (ajaxify.data.template.topic) {
71
+ $('.topic .topic-header').css({ top: topValue });
72
+ } else {
73
+ var topicListHeader = $('.topic-list-header');
74
+ if (topicListHeader.length) {
75
+ topicListHeader.css({ top: topValue });
76
+ }
77
+ }
78
+ }
79
+
80
+ navbarEl.off('show.autoHidingNavbar')
81
+ .on('show.autoHidingNavbar', function () {
82
+ fixTopCss('');
83
+ });
79
84
 
80
- navbarEl.off('hide.autoHidingNavbar')
81
- .on('hide.autoHidingNavbar', function () {
82
- fixTopCss('0px');
85
+ navbarEl.off('hide.autoHidingNavbar')
86
+ .on('hide.autoHidingNavbar', function () {
87
+ fixTopCss('0px');
88
+ });
83
89
  });
90
+ });
84
91
  }
85
92
 
86
93
  function setupNProgress() {
@@ -25,7 +25,14 @@
25
25
  </div>
26
26
  </div>
27
27
  </div>
28
- <input type="number" class="form-control" id="indexInput" placeholder="[[global:pagination.enter_index]]">
28
+ <div class="row">
29
+ <div class="col-xs-6">
30
+ <input type="number" class="form-control" id="indexInput" placeholder="[[global:pagination.enter_index]]">
31
+ </div>
32
+ <div class="col-xs-6">
33
+ <button id="myNextPostBtn" class="btn btn-default form-control" disabled>[[topic:go-to-my-next-post]]</button>
34
+ </div>
35
+ </div>
29
36
  </li>
30
37
  </ul>
31
38
  </div>
@@ -36,7 +36,11 @@
36
36
  {{{ if !feeds:disableRSS }}}
37
37
  {{{ if rssFeedUrl }}}<a class="hidden-xs" target="_blank" href="{rssFeedUrl}"><i class="fa fa-rss-square"></i></a>{{{ end }}}
38
38
  {{{ end }}}
39
+ {{{ if browsingUsers }}}
40
+ <div class="inline-block hidden-xs">
39
41
  <!-- IMPORT partials/topic/browsing-users.tpl -->
42
+ </div>
43
+ {{{ end }}}
40
44
 
41
45
  <!-- IMPORT partials/post_bar.tpl -->
42
46
  </div>
@@ -71,6 +75,13 @@
71
75
  {{{end}}}
72
76
  </ul>
73
77
 
78
+ {{{ if browsingUsers }}}
79
+ <div class="visible-xs">
80
+ <!-- IMPORT partials/topic/browsing-users.tpl -->
81
+ <hr/>
82
+ </div>
83
+ {{{ end }}}
84
+
74
85
  <!-- IF config.enableQuickReply -->
75
86
  <!-- IMPORT partials/topic/quickreply.tpl -->
76
87
  <!-- ENDIF config.enableQuickReply -->
@@ -1,13 +0,0 @@
1
- <div component="topic/browsing-users" class="inline-block hidden-xs">
2
- {{{each browsingUsers}}}
3
- <div class="pull-left" data-uid="{browsingUsers.uid}">
4
- <a href="<!-- IF browsingUsers.userslug -->{config.relative_path}/user/{browsingUsers.userslug}<!-- ELSE -->#<!-- ENDIF browsingUsers.userslug -->">
5
- <!-- IF browsingUsers.picture -->
6
- <img class="avatar avatar-sm avatar-rounded" component="user/picture" src="{browsingUsers.picture}" align="left" itemprop="image" title="{browsingUsers.username}"/>
7
- <!-- ELSE -->
8
- <div class="avatar avatar-sm avatar-rounded" component="user/picture" title="{browsingUsers.username}" style="background-color: {browsingUsers.icon:bgColor};">{browsingUsers.icon:text}</div>
9
- <!-- ENDIF browsingUsers.picture -->
10
- </a>
11
- </div>
12
- {{{end}}}
13
- </div>