nodebb-theme-harmony 2.2.11 → 2.2.13

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.13",
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>
@@ -66,7 +66,7 @@
66
66
  {{{ if posts.user.custom_profile_info.length }}}
67
67
  <div>
68
68
  <span>
69
- &#124;
69
+
70
70
  {{{ each posts.user.custom_profile_info }}}
71
71
  {posts.user.custom_profile_info.content}
72
72
  {{{ end }}}
@@ -1,7 +1,7 @@
1
1
  <div class="{{{ if config.theme.stickyToolbar }}}sticky-tools{{{ end }}} mb-3" style="top: {{{ if (config.theme.topMobilebar && !config.theme.autohideBottombar) }}}var(--panel-offset){{{ else }}}0{{{ end }}};">
2
2
  <nav class="topic-list-header d-flex flex-nowrap my-2 p-0 border-0 rounded">
3
- <div class="d-flex flex-row p-2 text-bg-light gap-1 border rounded w-100">
4
- <div component="category/controls" class="d-flex me-auto mb-0 gap-2 flex-wrap">
3
+ <div class="d-flex flex-row p-2 text-bg-light gap-1 border rounded w-100 align-items-center">
4
+ <div component="category/controls" class="d-flex flex-wrap align-items-stretch me-auto mb-0 gap-2">
5
5
  {{{ if template.category }}}
6
6
  <!-- IMPORT partials/category/watch.tpl -->
7
7
  <!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
@@ -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 -->
@@ -1,16 +0,0 @@
1
- <div class="dropdown bottom-sheet{{{ if !filters.length }}} hidden{{{ end }}}">
2
- <button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
- <i class="fa fa-fw fa-filter text-primary"></i>
4
- <span class="visible-md-inline visible-lg-inline fw-semibold">{selectedFilter.name}</span>
5
- </button>
6
- <ul class="dropdown-menu p-1 text-sm" role="menu">
7
- {{{each filters}}}
8
- <li role="presentation" class="category {{{if filters.selected}}}selected{{{end}}}">
9
- <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{filters.url}">
10
- <div class="flex-grow-1">{filters.name}</div>
11
- <i class="flex-shrink-0 fa fa-fw {{{ if filters.selected }}}fa-check{{{ end }}}"></i>
12
- </a>
13
- </li>
14
- {{{end}}}
15
- </ul>
16
- </div>
@@ -1,16 +0,0 @@
1
- <div class="dropdown bottom-sheet {{{ if !terms.length }}}hidden{{{ end }}}">
2
- <button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
- <i class="fa fa-fw fa-clock text-primary"></i>
4
- <span class="visible-md-inline visible-lg-inline fw-semibold">{selectedTerm.name}</span>
5
- </button>
6
- <ul class="dropdown-menu p-1 text-sm" role="menu">
7
- {{{each terms}}}
8
- <li role="presentation" class="category">
9
- <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{terms.url}">
10
- <div class="flex-grow-1">{terms.name}</div>
11
- <i class="flex-shrink-0 fa fa-fw {{{ if terms.selected }}}fa-check{{{ end }}}"></i>
12
- </a>
13
- </li>
14
- {{{end}}}
15
- </ul>
16
- </div>