nodebb-theme-harmony 2.1.39 → 2.1.40
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/library.js +3 -0
- package/package.json +1 -1
- package/public/harmony.js +2 -1
- package/scss/header.scss +1 -1
- package/scss/sidebar.scss +4 -4
- package/scss/skins.scss +4 -0
- package/templates/partials/notifications_list.tpl +6 -1
package/library.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const nconf = require.main.require('nconf');
|
|
4
|
+
const { setTimeout } = require('timers/promises');
|
|
4
5
|
const meta = require.main.require('./src/meta');
|
|
5
6
|
const _ = require.main.require('lodash');
|
|
6
7
|
const user = require.main.require('./src/user');
|
|
@@ -47,6 +48,8 @@ async function buildSkins() {
|
|
|
47
48
|
for (const skin of meta.css.supportedSkins) {
|
|
48
49
|
// eslint-disable-next-line no-await-in-loop
|
|
49
50
|
await meta.css.buildBundle(`client-${skin}`, true);
|
|
51
|
+
// eslint-disable-next-line no-await-in-loop
|
|
52
|
+
await setTimeout(5000);
|
|
50
53
|
}
|
|
51
54
|
require.main.require('./src/meta/minifier').killAll();
|
|
52
55
|
} catch (err) {
|
package/package.json
CHANGED
package/public/harmony.js
CHANGED
|
@@ -251,7 +251,8 @@ $(document).ready(function () {
|
|
|
251
251
|
tooltipEls.on('mouseenter', function (ev) {
|
|
252
252
|
const target = $(ev.target);
|
|
253
253
|
const isDropdown = target.hasClass('dropdown-menu') || !!target.parents('.dropdown-menu').length;
|
|
254
|
-
|
|
254
|
+
const isSidebarOpen = target.parents('.sidebar').hasClass('open');
|
|
255
|
+
if (!isSidebarOpen && !isDropdown) {
|
|
255
256
|
$(this).tooltip('show');
|
|
256
257
|
}
|
|
257
258
|
});
|
package/scss/header.scss
CHANGED
package/scss/sidebar.scss
CHANGED
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
.fa-angles-right { display: inline-block; }
|
|
76
76
|
.fa-angles-left { display: none; }
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
$dropdown-menu-width: 350px;
|
|
79
79
|
.search-dropdown {
|
|
80
|
-
width:
|
|
80
|
+
width: $dropdown-menu-width;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.chats-dropdown, .notifications-dropdown, .drafts-dropdown {
|
|
84
|
-
min-width:
|
|
85
|
-
width:
|
|
84
|
+
min-width: $dropdown-menu-width;
|
|
85
|
+
width: $dropdown-menu-width;
|
|
86
86
|
.list-container {
|
|
87
87
|
max-height: 400px;
|
|
88
88
|
overflow-y: auto;
|
package/scss/skins.scss
CHANGED
|
@@ -21,10 +21,15 @@
|
|
|
21
21
|
{{{ end }}}
|
|
22
22
|
</a>
|
|
23
23
|
|
|
24
|
-
<div class="d-flex flex-grow-1 flex-column align-items-start position-relative">
|
|
24
|
+
<div class="d-flex flex-grow-1 flex-column gap-1 align-items-start position-relative">
|
|
25
25
|
<a href="{./path}" class="text-decoration-none d-inline-block text-reset text-break text-sm ff-sans stretched-link" component="notifications/item/link">
|
|
26
26
|
{./bodyShort}
|
|
27
27
|
</a>
|
|
28
|
+
{{{ if ./bodyLong}}}
|
|
29
|
+
<div class="text-secondary text-sm line-clamp-2 hidden-blockquote hidden-leading-br">
|
|
30
|
+
{./bodyLong}
|
|
31
|
+
</div>
|
|
32
|
+
{{{ end }}}
|
|
28
33
|
<div class="text-xs text-muted">{{{ if ./timeagoLong }}}{./timeagoLong}{{{ else }}}<span class="timeago" title="{./datetimeISO}"></span>{{{ end }}}</div>
|
|
29
34
|
</div>
|
|
30
35
|
</div>
|