nodebb-theme-harmony 2.1.21 → 2.1.22
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
package/scss/topic.scss
CHANGED
|
@@ -113,8 +113,13 @@ body.template-topic {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
[component="topic/thumb/list"]
|
|
117
|
-
|
|
116
|
+
[component="topic/thumb/list"] {
|
|
117
|
+
&.thumbs-collapsed a.d-inline-block:nth-of-type(n+4) {
|
|
118
|
+
display: none!important;
|
|
119
|
+
}
|
|
120
|
+
> a {
|
|
121
|
+
height: calc($font-size-base * 4);
|
|
122
|
+
}
|
|
118
123
|
}
|
|
119
124
|
}
|
|
120
125
|
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
<a class="d-inline-block" href="{./url}">
|
|
3
3
|
<img class="rounded-1 bg-light" style="width:auto; max-width: 5.33rem; height: 3.33rem; object-fit: contain;" src="{./url}" />
|
|
4
4
|
</a>
|
|
5
|
+
{{{ end }}}
|
|
6
|
+
{{{ if greaterthan(thumbs.length, "4") }}}
|
|
7
|
+
<button component="topic/thumb/list/expand" class="btn btn-light fw-semibold" style="width:auto; max-width: 5.33rem; height: 3.33rem; object-fit: contain;">+{increment(thumbs.length, "-3")}</button>
|
|
5
8
|
{{{ end }}}
|
package/templates/topic.tpl
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<div class="d-flex gap-2"><!-- IMPORT partials/topic/stats.tpl --></div>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
|
-
<div class="d-flex flex-wrap gap-2 align-items-start mt-2 hidden-empty" component="topic/thumb/list"><!-- IMPORT partials/topic/thumbs.tpl --></div>
|
|
52
|
+
<div class="d-flex flex-wrap gap-2 align-items-start mt-2 hidden-empty {{{ if greaterthan(thumbs.length, "4") }}}thumbs-collapsed{{{ end }}}" component="topic/thumb/list"><!-- IMPORT partials/topic/thumbs.tpl --></div>
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
55
|
<div class="row mb-4 mb-lg-0">
|