nodebb-theme-harmony 1.0.0-beta.80 → 1.0.0-beta.82

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": "1.0.0-beta.80",
3
+ "version": "1.0.0-beta.82",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -20,7 +20,13 @@
20
20
  &.unread .title {
21
21
  color: $link-color;
22
22
  }
23
+
23
24
  .ui-sortable-handle {
24
25
  cursor: move;
25
26
  }
27
+
28
+ .topic-thumb img {
29
+ width: 80px;
30
+ height: auto;
31
+ }
26
32
  }
@@ -5,7 +5,7 @@
5
5
  {{{ each notifications }}}
6
6
  <li class="{./readClass} mb-2 p-1" data-nid="{./nid}" data-path="{./path}" {{{ if ./pid }}}data-pid="{./pid}"{{{ end }}}{{{ if ./tid }}}data-tid="{./tid}"{{{ end }}}>
7
7
  <div class="d-flex gap-1 justify-content-between">
8
- <div class="d-flex gap-2">
8
+ <div class="d-flex gap-2 flex-grow-1">
9
9
  {{{ if ./image }}}
10
10
  {{{ if ./from }}}
11
11
  <a class="text-decoration-none" href="{config.relative_path}/user/{./user.userslug}"><img class="avatar avatar-rounded" style="--avatar-size: 32px;" src="{./image}" /></a>
@@ -13,8 +13,8 @@
13
13
  {{{ else }}}
14
14
  <a class="text-decoration-none" href="{config.relative_path}/user/{./user.userslug}"><div class="avatar avatar-rounded" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div></a>
15
15
  {{{ end }}}
16
- <div class=" d-flex flex-column">
17
- <a href="{./path}" class="text-decoration-none text-reset text-break text-sm">
16
+ <div class=" d-flex flex-grow-1 flex-column position-relative">
17
+ <a href="{./path}" class="text-decoration-none text-reset text-break text-sm stretched-link">
18
18
  {./bodyShort}
19
19
  </a>
20
20
  <div class="text-xs text-muted">{{{ if ./timeagoLong }}}{./timeagoLong}{{{ else }}}<span class="timeago" title="{./datetimeISO}"></span>{{{ end }}}</div>
@@ -37,13 +37,13 @@
37
37
  <span class="badge bg-danger rounded-1">[[user:banned]]</span>
38
38
  {{{ end }}}
39
39
 
40
- <div class="d-flex gap-1 hidden-xs align-items-center">
40
+ <div class="d-flex gap-1 align-items-center">
41
41
  <span class="text-muted">
42
- {{{ if posts.toPid }}}
43
- {generateRepliedTo(@value, config.timeagoCutoff)}
44
- {{{ else }}}
45
- {generateWrote(@value, config.timeagoCutoff)}
46
- {{{ end }}}
42
+ {{{ if posts.toPid }}}
43
+ {generateRepliedTo(@value, config.timeagoCutoff)}
44
+ {{{ else }}}
45
+ {generateWrote(@value, config.timeagoCutoff)}
46
+ {{{ end }}}
47
47
  </span>
48
48
 
49
49
  <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, {./editedISO}]]"></i>
@@ -11,15 +11,19 @@
11
11
  <div class="row">
12
12
  <div class="col-md-7 col-sm-9 col-12 content d-flex">
13
13
  <div class="me-3">
14
+ {{{ if ./thumbs.length }}}
15
+ <div class="topic-thumb">
16
+ <a href="{./thumbs.0.url}">
17
+ <img class="topic-thumb rounded-1" src="{./thumbs.0.url}" class="not-responsive" />
18
+ </a>
19
+ </div>
20
+ {{{ else }}}
14
21
  <div class="avatar">
15
22
  <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" class="text-decoration-none">
16
- {{{ if ./thumbs.length }}}
17
- <img class="topic-thumb rounded-1" width="80" height="auto" src="{./thumbs.0.url}" class="not-responsive" />
18
- {{{ else }}}
19
23
  {buildAvatar(./user, "40px", true, "avatar-tooltip not-responsive")}
20
- {{{ end }}}
21
24
  </a>
22
25
  </div>
26
+ {{{ end }}}
23
27
  </div>
24
28
  <div class="d-flex flex-column gap-1">
25
29
  <h2 component="topic/header" class="text-break title mb-1 {{{ if showSelect }}}me-4{{{ end }}} me-md-0 text-md fw-bold">
@@ -41,10 +41,10 @@
41
41
  {{{ end }}}
42
42
 
43
43
  {{{ each posts }}}
44
- <div class="card mb-4" data-id="{./id}">
44
+ <div class="card mb-4" data-id="{./id}" data-uid="{./user.uid}">
45
45
  <div class="row g-0">
46
- <div class="col-md-2 bg-light">
47
- <ul class="list-unstyled ps-0 mb-0 border-end">
46
+ <div class="col-sm-4 col-md-3 bg-light rounded-start">
47
+ <ul class="list-unstyled ps-0 mb-0 border-end h-100">
48
48
  <li class="card-body border-bottom position-relative">
49
49
  {{{ if !singlePost }}}
50
50
  <input id="{./id}" type="checkbox" class="form-check-input" autocomplete="off" />
@@ -54,7 +54,29 @@
54
54
  </label>
55
55
  </li>
56
56
  <li class="card-body border-bottom">
57
- <div class="text-xs fw-semibold mb-1">[[post-queue:user]]</div>
57
+ <div class="d-flex text-xs fw-semibold mb-1 align-items-center">
58
+ [[post-queue:user]]
59
+ {{{ if ((privileges.ban || privileges.mute) || privileges.admin:users) }}}
60
+ <div class="ms-auto btn-group bottom-sheet">
61
+ <button href="#" class="btn btn-outline-sm text-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Actions</button>
62
+ <ul class="dropdown-menu">
63
+ {{{ if privileges.ban }}}
64
+ <li class="{{{ if target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="ban">[[user:ban_account]]</a></li>
65
+ <li class="{{{ if !target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="unban">[[user:unban_account]]</a></li>
66
+ {{{ end }}}
67
+ {{{ if privileges.mute}}}
68
+ <li class="{{{ if target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="mute">[[user:mute_account]]</a></li>
69
+ <li class="{{{ if !target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="unmute">[[user:unmute_account]]</a></li>
70
+ {{{ end }}}
71
+ {{{ if privileges.admin:users }}}
72
+ <li><a class="dropdown-item" href="#" data-action="delete-account">[[user:delete_account_as_admin]]</a></li>
73
+ <li><a class="dropdown-item" href="#" data-action="delete-content">[[user:delete_content]]</a></li>
74
+ <li><a class="dropdown-item" href="#" data-action="delete-all">[[user:delete_all]]</a></li>
75
+ {{{ end }}}
76
+ </ul>
77
+ </div>
78
+ {{{ end }}}
79
+ </div>
58
80
  <div class="small">
59
81
  {{{ if posts.user.userslug}}}
60
82
  <a class="text-decoration-none" href="{config.relative_path}/uid/{posts.user.uid}">{buildAvatar(posts.user, "24px", true, "not-responsive")} {posts.user.username}</a>
@@ -98,10 +120,10 @@
98
120
  </li>
99
121
  </ul>
100
122
  </div>
101
- <div class="col-md-10 d-flex flex-column">
123
+ <div class="col-sm-8 col-md-9 d-flex flex-column">
102
124
  <div class="post-content mb-auto text-break p-3 pb-0 h-100">{posts.data.content}</div>
103
- <div class="post-content-editable hidden">
104
- <textarea class="form-control w-100" style="height:300px;">{posts.data.rawContent}</textarea>
125
+ <div class="post-content-editable flex-grow-1 hidden">
126
+ <textarea class="form-control w-100 h-100 p-3">{posts.data.rawContent}</textarea>
105
127
  </div>
106
128
  <div class="border-top p-3 d-grid d-md-flex gap-2">
107
129
  {{{ if canAccept }}}
@@ -115,15 +137,6 @@
115
137
  </div>
116
138
  </div>
117
139
  </div>
118
- <div class="card-body" style="display: none;">
119
- <div>
120
- <strong>[[post-queue:content]] <i class="fa fa-fw fa-edit" data-bs-toggle="tooltip" title="[[post-queue:content-editable]]"></i></strong>
121
-
122
- </div>
123
- </div>
124
- <div class="card-footer text-end" style="display: none;">
125
-
126
- </div>
127
140
  </div>
128
141
  {{{ end }}}
129
142
  </div>