nodebb-theme-harmony 1.0.0-beta.52 → 1.0.0-beta.54
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 +1 -1
- package/public/harmony.js +2 -3
- package/templates/account/edit.tpl +2 -2
- package/templates/login.tpl +2 -2
- package/templates/register.tpl +2 -2
package/package.json
CHANGED
package/public/harmony.js
CHANGED
|
@@ -68,7 +68,6 @@ $(document).ready(function () {
|
|
|
68
68
|
let lastScrollTop = 0;
|
|
69
69
|
let newPostsLoaded = false;
|
|
70
70
|
|
|
71
|
-
|
|
72
71
|
function onWindowScroll() {
|
|
73
72
|
const st = $window.scrollTop();
|
|
74
73
|
if (newPostsLoaded) {
|
|
@@ -105,13 +104,13 @@ $(document).ready(function () {
|
|
|
105
104
|
});
|
|
106
105
|
hooks.on('action:posts.loaded', function () {
|
|
107
106
|
newPostsLoaded = true;
|
|
108
|
-
enableAutohide
|
|
107
|
+
setTimeout(enableAutohide, 250);
|
|
109
108
|
});
|
|
110
109
|
hooks.on('action:ajaxify.end', function () {
|
|
111
110
|
$window.off('scroll', delayedScroll);
|
|
112
111
|
$body.removeClass('chat-loaded');
|
|
113
112
|
bottomBar.css({ bottom: 0 });
|
|
114
|
-
enableAutohide
|
|
113
|
+
setTimeout(enableAutohide, 250);
|
|
115
114
|
});
|
|
116
115
|
hooks.on('action:chat.loaded', function () {
|
|
117
116
|
$body.toggleClass('chat-loaded', !!(ajaxify.data.template.chats && ajaxify.data.roomId));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- IMPORT partials/account/header.tpl -->
|
|
2
2
|
|
|
3
|
-
<div class="d-flex justify-content-between mb-3">
|
|
4
|
-
<h3 class="fw-semibold fs-5">{{{ if isSelf }}}[[user:edit-profile]]{{{ else }}}[[pages:account/edit, {username}]]{{{ end }}}</h3>
|
|
3
|
+
<div class="d-flex justify-content-between mb-3 align-items-center">
|
|
4
|
+
<h3 class="fw-semibold fs-5 mb-0">{{{ if isSelf }}}[[user:edit-profile]]{{{ else }}}[[pages:account/edit, {username}]]{{{ end }}}</h3>
|
|
5
5
|
<button id="submitBtn" class="btn btn-primary">[[global:save_changes]]</button>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="row">
|
package/templates/login.tpl
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<h2 class="tracking-tight fw-semibold text-center">[[global:login]]</h2>
|
|
9
9
|
<div class="row justify-content-center gap-5">
|
|
10
10
|
{{{ if allowLocalLogin }}}
|
|
11
|
-
<div class="col-12 col-md-3 px-md-0">
|
|
11
|
+
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
12
12
|
<div class="login-block">
|
|
13
13
|
<div class="alert alert-danger alert-dismissible" id="login-error-notify" {{{ if error }}}style="display:block"{{{ else }}}style="display: none;"{{{ end }}}>
|
|
14
14
|
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
{{{ end }}}
|
|
69
69
|
|
|
70
70
|
{{{ if alternate_logins }}}
|
|
71
|
-
<div class="col-12 col-md-3 px-md-0">
|
|
71
|
+
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
72
72
|
<div class="alt-login-block d-flex flex-column gap-2">
|
|
73
73
|
<label>[[login:alternative_logins]]</label>
|
|
74
74
|
<ul class="alt-logins list-unstyled">
|
package/templates/register.tpl
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<h2 class="tracking-tight fw-semibold text-center">[[global:register]]</h2>
|
|
9
9
|
<div class="row justify-content-center gap-5">
|
|
10
10
|
|
|
11
|
-
<div class="col-12 col-md-3 px-md-0">
|
|
11
|
+
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
12
12
|
<div class="register-block">
|
|
13
13
|
<div class="alert alert-danger{{{ if !error }}} hidden{{{ end }}}" id="register-error-notify" >
|
|
14
14
|
<strong>[[error:registration-error]]</strong>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
</div>
|
|
67
67
|
|
|
68
68
|
{{{ if alternate_logins }}}
|
|
69
|
-
<div class="col-12 col-md-3 px-md-0">
|
|
69
|
+
<div class="col-12 col-md-5 col-lg-3 px-md-0">
|
|
70
70
|
<div class="alt-register-block d-flex flex-column gap-2">
|
|
71
71
|
<label>[[register:alternative_registration]]</label>
|
|
72
72
|
<ul class="alt-logins list-unstyled">
|