nodebb-theme-harmony 2.2.11 → 2.2.12

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-harmony",
3
- "version": "2.2.11",
3
+ "version": "2.2.12",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -187,11 +187,15 @@ $(document).ready(function () {
187
187
 
188
188
  draftsEl.on('click', '[component="drafts/delete"]', function () {
189
189
  const save_id = $(this).attr('data-save-id');
190
- bootbox.confirm('[[modules:composer.discard-draft-confirm]]', function (ok) {
191
- if (ok) {
192
- drafts.removeDraft(save_id);
193
- renderDraftList();
194
- }
190
+ bootbox.confirm({
191
+ title: '[[modules:bootbox.confirm]]',
192
+ message: '[[modules:composer.discard-draft-confirm]]',
193
+ callback: function (ok) {
194
+ if (ok) {
195
+ drafts.removeDraft(save_id);
196
+ renderDraftList();
197
+ }
198
+ },
195
199
  });
196
200
  return false;
197
201
  });
package/scss/skins.scss CHANGED
@@ -12,6 +12,14 @@
12
12
  }
13
13
  }
14
14
 
15
+ .skin-brite {
16
+ .topic-sidebar-tools .btn {
17
+ // this removes the 3px left margin on buttons in brite skin
18
+ // without this buttons in the sidebar on topic.tpl aren't properly aligned
19
+ margin-left: 0px;
20
+ }
21
+ }
22
+
15
23
  .skin-solar {
16
24
  .form-control::placeholder {
17
25
  color:$gray-100!important;
@@ -1 +1 @@
1
- <a href="{config.relative_path}/groups/{./slug}" class="badge rounded-1 text-uppercase text-truncate text-decoration-none" style="max-width: 150px;color:{./textColor};background-color: {./labelColor};"><i class="fa {{{ if ./icon }}}{./icon}{{{ if ./userTitle}}} me-1{{{ end }}}{{{else}}}hidden{{{ end }}}"></i><span class="badge-text align-text-bottom">{{{ if ./userTitle }}}{./userTitle}{{{ end }}}</span></a>
1
+ <a href="{config.relative_path}/groups/{./slug}" class="badge rounded-1 text-uppercase text-truncate text-decoration-none d-flex gap-1" style="max-width: 150px;color:{./textColor};background-color: {./labelColor};"><i class="fa {{{ if ./icon }}}{./icon}{{{else}}}hidden{{{ end }}}"></i><span class="badge-text">{{{ if ./userTitle }}}{./userTitle}{{{ end }}}</span></a>
@@ -108,7 +108,7 @@
108
108
  <div class="sticky-top" style="{{{ if config.theme.topicSidebarTools }}}top:2rem;{{{ else }}}top:6rem; {{{ end }}} z-index:1;">
109
109
  <div class="d-flex flex-column gap-3 align-items-end">
110
110
  {{{ if config.theme.topicSidebarTools }}}
111
- <div class="d-flex flex-column gap-2" style="width: 170px;">
111
+ <div class="topic-sidebar-tools d-flex flex-column gap-2" style="width: 170px;">
112
112
  <!-- IMPORT partials/topic/reply-button.tpl -->
113
113
  <!-- IMPORT partials/topic/mark-unread.tpl -->
114
114
  <!-- IMPORT partials/topic/watch.tpl -->