nodebb-theme-harmony 1.0.0-beta.66 → 1.0.0-beta.68
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 +1 -1
- package/scss/modules/topic-navigator.scss +18 -0
- package/scss/sidebar.scss +1 -1
- package/scss/topic.scss +1 -1
- package/templates/chats.tpl +2 -2
- package/templates/notifications.tpl +1 -1
- package/templates/partials/chats/recent_room.tpl +3 -2
- package/templates/partials/sidebar/chats.tpl +4 -4
- package/templates/partials/topic/navigator.tpl +4 -5
- package/templates/partials/topic/post.tpl +5 -6
package/package.json
CHANGED
|
@@ -3,11 +3,29 @@
|
|
|
3
3
|
.scroller-container {
|
|
4
4
|
height: 300px;
|
|
5
5
|
border-left: 2px solid $border-color;
|
|
6
|
+
|
|
6
7
|
.scroller-thumb {
|
|
8
|
+
&:not(.active) {
|
|
9
|
+
transition: top 100ms linear;
|
|
10
|
+
}
|
|
7
11
|
cursor: grab;
|
|
8
12
|
&.active {
|
|
9
13
|
cursor: grabbing;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
16
|
+
|
|
17
|
+
.unread {
|
|
18
|
+
width: 1px;
|
|
19
|
+
height: 0; // initial
|
|
20
|
+
bottom: 0;
|
|
21
|
+
background: $primary;
|
|
22
|
+
transition: $transition-base;
|
|
23
|
+
left: -1px;
|
|
24
|
+
|
|
25
|
+
.meta {
|
|
26
|
+
left: 5px;
|
|
27
|
+
font-size: 13px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
12
30
|
}
|
|
13
31
|
}
|
package/scss/sidebar.scss
CHANGED
package/scss/topic.scss
CHANGED
package/templates/chats.tpl
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
<hr class="text-muted opacity-25 my-1">
|
|
17
|
-
<
|
|
17
|
+
<div component="chat/recent" class="chats-list overflow-auto mb-0 pe-1" data-nextstart="{nextStart}">
|
|
18
18
|
{{{each rooms}}}
|
|
19
19
|
<!-- IMPORT partials/chats/recent_room.tpl -->
|
|
20
20
|
{{{end}}}
|
|
21
|
-
</
|
|
21
|
+
</div>
|
|
22
22
|
</div>
|
|
23
23
|
<div class="flex-1 ms-md-2 ps-md-2 border-1 border-start-md h-100" component="chat/main-wrapper">
|
|
24
24
|
<!-- IMPORT partials/chats/message-window.tpl -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="notifications">
|
|
2
2
|
<div class="btn-toolbar justify-content-end" role="toolbar">
|
|
3
|
-
<button class="btn btn-light" component="notifications/mark_all">[[notifications:mark_all_read]]</button>
|
|
3
|
+
<button class="btn btn-sm btn-light" component="notifications/mark_all">[[notifications:mark_all_read]]</button>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
6
|
<hr class="text-muted opacity-25"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
1
|
+
<div component="chat/recent/room" data-roomid="{./roomId}" data-full="1" class="rounded-1 {{{ if ./unread }}}unread{{{ end }}}">
|
|
2
2
|
<div class="d-flex gap-1 justify-content-between p-1">
|
|
3
3
|
<div class="position-relative d-flex flex-grow-1 gap-2 justify-content-start align-items-start">
|
|
4
4
|
<div class="main-avatar">
|
|
@@ -42,4 +42,5 @@
|
|
|
42
42
|
</button>
|
|
43
43
|
</div>
|
|
44
44
|
</div>
|
|
45
|
-
</
|
|
45
|
+
</div>
|
|
46
|
+
<hr class="text-muted opacity-25 my-1" />
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
</a>
|
|
11
11
|
<ul class="chats-dropdown dropdown-menu p-1 shadow">
|
|
12
12
|
<li>
|
|
13
|
-
<
|
|
14
|
-
<
|
|
13
|
+
<div component="chat/list" class="chat-list chats-list overscroll-behavior-contain p-0 pe-1 ff-base">
|
|
14
|
+
<div class="rounded-1">
|
|
15
15
|
<div class="d-flex gap-1 justify-content-between">
|
|
16
16
|
<div class="dropdown-item p-2 d-flex gap-2 placeholder-wave">
|
|
17
17
|
<div class="main-avatar">
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
</button>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
|
-
</
|
|
33
|
-
</
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
34
|
</li>
|
|
35
35
|
<li class="dropdown-divider"></li>
|
|
36
36
|
<li class="notif-dropdown-link">
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
<div class="scroller-thumb-icon bg-primary rounded d-inline-block" style="width:9px; height: 40px;"></div>
|
|
8
8
|
<div>
|
|
9
9
|
<p class="small thumb-text d-none d-md-inline-block ff-secondary fw-semibold user-select-none mb-0"></p>
|
|
10
|
-
<p class="meta thumb-timestamp timeago text-xs text-muted ff-secondary fw-semibold mb-0"></p>
|
|
10
|
+
<p class="meta thumb-timestamp timeago text-xs text-muted ff-secondary fw-semibold mb-0 user-select-none"></p>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<a href="{url}"></a>
|
|
14
|
+
<div class="unread d-inline-block position-absolute bottom-0">
|
|
15
|
+
<div class="meta small position-absolute top-50 translate-middle-y text-nowrap fw-semibold ms-2">
|
|
16
|
+
<a class="text-decoration-none" href="{url}"></a>
|
|
18
17
|
</div>
|
|
19
18
|
</div>
|
|
20
19
|
</div>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</a>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
<div class="d-flex flex-grow-1 flex-column w-100" style="min-width: 0;">
|
|
17
|
+
<div class="post-container d-flex flex-grow-1 flex-column w-100" style="min-width: 0;">
|
|
18
18
|
<div class="d-flex align-items-center gap-1 flex-wrap w-100 post-header mt-1">
|
|
19
19
|
<div class="icon bg-body d-sm-none">
|
|
20
20
|
<a class="d-inline-block position-relative text-decoration-none" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">
|
|
@@ -38,14 +38,13 @@
|
|
|
38
38
|
{{{ end }}}
|
|
39
39
|
|
|
40
40
|
<div class="d-flex gap-1 hidden-xs align-items-center">
|
|
41
|
+
<span class="text-muted">
|
|
41
42
|
{{{ if posts.toPid }}}
|
|
42
|
-
|
|
43
|
-
<a component="post/parent" data-topid="{posts.toPid}" href="{config.relative_path}/post/{posts.toPid}">{{{ if posts.parent.username }}}{posts.parent.username}{{{ else }}}[[global:guest]]{{{ end }}}</a>
|
|
43
|
+
{generateRepliedTo(@value, config.timeagoCutoff)}
|
|
44
44
|
{{{ else }}}
|
|
45
|
-
|
|
45
|
+
{generateWrote(@value, config.timeagoCutoff)}
|
|
46
46
|
{{{ end }}}
|
|
47
|
-
|
|
48
|
-
<a class="permalink text-muted" href="{config.relative_path}/post/{posts.pid}"><span class="timeago" title="{posts.timestampISO}"></span></a>
|
|
47
|
+
</span>
|
|
49
48
|
|
|
50
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>
|
|
51
50
|
<span data-editor="{posts.editor.userslug}" component="post/editor" class="visually-hidden">[[global:last_edited_by, {posts.editor.username}]] <span class="timeago" title="{posts.editedISO}"></span></span>
|