nodebb-theme-harmony 2.0.14 → 2.0.16

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.0.14",
3
+ "version": "2.0.16",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
package/scss/mixins.scss CHANGED
@@ -55,7 +55,7 @@
55
55
  }
56
56
  }
57
57
 
58
- > div:first-of-type {
58
+ >.post-container-parent {
59
59
  margin-left: -1.5rem;
60
60
  }
61
61
 
package/scss/topic.scss CHANGED
@@ -69,6 +69,13 @@ body.template-topic {
69
69
  @include topic-avatars();
70
70
  }
71
71
 
72
+ [component="post/parent"] {
73
+ margin-left: 2.5rem;
74
+ [component="post/parent/content"] > p:last-child {
75
+ margin-bottom: 0;
76
+ }
77
+ }
78
+
72
79
  [component="post/replies/container"] {
73
80
  .icon {
74
81
  display: none !important;
@@ -1,6 +1,6 @@
1
1
  {{{ if loggedIn }}}
2
2
  <button component="topic/mark-unread" class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center">
3
3
  <i class="fa fa-fw fa-inbox text-primary"></i>
4
- <span class="d-none d-md-inline fw-semibold">[[topic:mark-unread]]</span>
4
+ <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:mark-unread]]</span>
5
5
  </button>
6
6
  {{{ end }}}
@@ -5,7 +5,10 @@
5
5
  {{{ end }}}
6
6
  </div>
7
7
  {{{ end }}}
8
- <div class="d-flex align-items-start gap-3">
8
+ {{{ if (./parent && !hideParent) }}}
9
+ <!-- IMPORT partials/topic/post-parent.tpl -->
10
+ {{{ end }}}
11
+ <div class="d-flex align-items-start gap-3 post-container-parent">
9
12
  <div class="bg-body d-none d-sm-block rounded-circle" style="outline: 2px solid var(--bs-body-bg);">
10
13
  <a class="d-inline-block position-relative text-decoration-none" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" aria-label="[[aria:profile-page-for, {./user.displayname}]]">
11
14
  {buildAvatar(posts.user, "48px", true, "", "user/picture")}
@@ -54,7 +57,7 @@
54
57
  {{{ end }}}
55
58
 
56
59
  <div class="d-flex gap-1 align-items-center">
57
- <span class="text-muted">{generateWroteReplied(@value, config.timeagoCutoff)}</span>
60
+ <span class="text-muted">{generateWrote(@value, config.timeagoCutoff)}</span>
58
61
 
59
62
  <i component="post/edit-indicator" class="fa fa-edit text-muted{{{ if privileges.posts:history }}} pointer{{{ end }}} edit-icon {{{ if !posts.editor.username }}}hidden{{{ end }}}" title="[[global:edited-timestamp, {isoTimeToLocaleString(./editedISO, config.userLang)}]]"></i>
60
63
  <span data-editor="{posts.editor.userslug}" component="post/editor" class="visually-hidden">[[global:last-edited-by, {posts.editor.username}]] <span class="timeago" title="{isoTimeToLocaleString(posts.editedISO, config.userLang)}"></span></span>
@@ -1,5 +1,5 @@
1
1
  <div component="topic/reply/container" class="btn-group {{{ if !privileges.topics:reply }}}hidden{{{ end }}}">
2
- <a href="{config.relative_path}/compose?tid={tid}" class="d-flex {{{ if !config.theme.topicSidebarTools}}}px-3{{{ end }}} gap-2 align-items-center btn btn-sm btn-primary fw-semibold" component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-fw fa-reply {{{ if !config.theme.topicSidebarTools}}} d-sm-block d-md-none {{{ end }}}"></i><span class="d-none d-md-block"> [[topic:reply]]</span></a>
2
+ <a href="{config.relative_path}/compose?tid={tid}" class="d-flex {{{ if !config.theme.topicSidebarTools}}}px-3{{{ end }}} gap-2 align-items-center btn btn-sm btn-primary fw-semibold" component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-fw fa-reply {{{ if !config.theme.topicSidebarTools}}} d-sm-block d-md-none {{{ end }}}"></i><span class="d-none d-md-block text-truncate text-nowrap">[[topic:reply]]</span></a>
3
3
  <button type="button" class="btn btn-sm btn-primary dropdown-toggle flex-0" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[topic:reply-options]]">
4
4
  <span class="caret"></span>
5
5
  </button>
@@ -9,15 +9,9 @@
9
9
  </div>
10
10
 
11
11
  {{{ if loggedIn }}}
12
- {{{ if (!privileges.topics:reply && locked) }}}
13
- <a href="#" component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled" disabled><i class="fa fa-fw fa-lock"></i> [[topic:locked]]</a>
14
- {{{ end }}}
15
-
16
- {{{ if !locked }}}
17
- <a href="#" component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled hidden" disabled><i class="fa fa-fw fa-lock"></i> [[topic:locked]]</a>
18
- {{{ end }}}
12
+ <a href="#" component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled {{{ if (privileges.topics:reply || !locked) }}}hidden{{{ end }}}" disabled><i class="fa fa-fw fa-lock"></i> [[topic:locked]]</a>
19
13
  {{{ else }}}
20
14
  {{{ if !privileges.topics:reply }}}
21
- <a component="topic/reply/guest" href="{config.relative_path}/login" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary"><i class="fa fa-fw fa-sign-in {{{ if !config.theme.topicSidebarTools}}} d-sm-block d-md-none {{{ end }}}"></i><span class="d-none d-md-block">[[topic:guest-login-reply]]</span></a>
15
+ <a component="topic/reply/guest" href="{config.relative_path}/login" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary"><i class="fa fa-fw fa-sign-in {{{ if !config.theme.topicSidebarTools}}} d-sm-block d-md-none {{{ end }}}"></i><span>[[topic:guest-login-reply]]</span></a>
22
16
  {{{ end }}}
23
17
  {{{ end }}}
@@ -1,7 +1,7 @@
1
1
  <div class="btn-group bottom-sheet" component="thread/sort">
2
- <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" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
2
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle text-truncate" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
3
3
  <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
4
- <span class="d-none d-md-inline fw-semibold">{sortOptionLabel}</span>
4
+ <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">{sortOptionLabel}</span>
5
5
  </button>
6
6
 
7
7
  <ul class="dropdown-menu p-1 text-sm" role="menu">
@@ -1,8 +1,8 @@
1
1
  {{{ if privileges.view_thread_tools }}}
2
2
  <div class="btn-group thread-tools bottom-sheet">
3
- <button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
3
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
4
4
  <i class="fa fa-fw fa-gear text-primary"></i>
5
- <span class="d-none d-md-inline fw-semibold">[[topic:thread-tools.title]]</span>
5
+ <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:thread-tools.title]]</span>
6
6
  </button>
7
7
  <ul class="dropdown-menu p-1 text-sm" role="menu"></ul>
8
8
  </div>
@@ -1,19 +1,19 @@
1
1
  {{{ if config.loggedIn }}}
2
2
  <div class="btn-group bottom-sheet" component="topic/watch">
3
- <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
3
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
4
4
  <span component="topic/following/menu" class="d-flex gap-2 align-items-center{{{ if !isFollowing }}} hidden{{{ end }}}">
5
5
  <i class="flex-shrink-0 fa fa-fw fa-bell-o text-primary"></i>
6
- <span class="d-none d-md-inline fw-semibold">[[topic:watching]]</span>
6
+ <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:watching]]</span>
7
7
  </span>
8
8
 
9
9
  <span component="topic/not-following/menu" class="d-flex gap-2 align-items-center{{{ if !isNotFollowing}}} hidden{{{ end }}}">
10
10
  <i class="flex-shrink-0 fa fa-fw fa-bell-slash-o text-primary"></i>
11
- <span class="d-none d-md-inline fw-semibold">[[topic:not-watching]]</span>
11
+ <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:not-watching]]</span>
12
12
  </span>
13
13
 
14
14
  <span component="topic/ignoring/menu" class="d-flex gap-2 align-items-center{{{ if !isIgnoring }}} hidden{{{ end }}}">
15
15
  <i class="flex-shrink-0 fa fa-fw fa-eye-slash text-primary"></i>
16
- <span class="d-none d-md-inline fw-semibold">[[topic:ignoring]]</span>
16
+ <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:ignoring]]</span>
17
17
  </span>
18
18
  </button>
19
19
  <ul class="dropdown-menu p-1 text-sm" role="menu">
@@ -97,7 +97,7 @@
97
97
  <div class="sticky-top" style="{{{ if config.theme.topicSidebarTools }}}top:2rem;{{{ else }}}top:6rem; {{{ end }}} z-index:1;">
98
98
  <div class="d-flex flex-column gap-3 align-items-end">
99
99
  {{{ if config.theme.topicSidebarTools }}}
100
- <div class="d-flex flex-column gap-2" style="min-width: 170px;">
100
+ <div class="d-flex flex-column gap-2" style="width: 170px;">
101
101
  <!-- IMPORT partials/topic/reply-button.tpl -->
102
102
  <!-- IMPORT partials/topic/mark-unread.tpl -->
103
103
  <!-- IMPORT partials/topic/watch.tpl -->