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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.1.39",
3
+ "version": "2.1.40",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
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
- if (!$('.sidebar').hasClass('open') && !isDropdown) {
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
@@ -1,7 +1,7 @@
1
1
  // hide brand/title on user and group details pages so it doesnt break covers
2
2
  body[class*="template-account-"], .template-chats, .template-groups-details {
3
3
  .brand-container {
4
- display: none;
4
+ display: none!important;
5
5
  }
6
6
  }
7
7
  [component="brand/wrapper"] {
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: 300px;
80
+ width: $dropdown-menu-width;
81
81
  }
82
82
 
83
83
  .chats-dropdown, .notifications-dropdown, .drafts-dropdown {
84
- min-width: 300px;
85
- width: 300px;
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
@@ -6,6 +6,10 @@
6
6
  .form-control::placeholder {
7
7
  color:$gray-100!important;
8
8
  }
9
+ .position-sticky.bg-body {
10
+ background-color: transparent!important;
11
+ backdrop-filter: blur(5px);
12
+ }
9
13
  }
10
14
 
11
15
  .skin-solar {
@@ -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>