nodebb-theme-harmony 1.0.0-beta.24 → 1.0.0-beta.26

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.24",
3
+ "version": "1.0.0-beta.26",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -85,7 +85,9 @@ $(document).ready(function () {
85
85
  }
86
86
  draftItems.reverse().forEach((draft) => {
87
87
  if (draft) {
88
- draft.text = draft.text.replace(/(?:\r\n|\r|\n)/g, '<br>');
88
+ draft.text = utils.escapeHTML(
89
+ draft.text.replace(/(?:\r\n|\r|\n)/g, '<br>')
90
+ );
89
91
  }
90
92
  });
91
93
 
package/scss/mixins.scss CHANGED
@@ -124,9 +124,13 @@
124
124
  display: none;
125
125
  }
126
126
 
127
- .timeline-event {
128
- .timeline-text.timeago {
129
- display: none;
127
+
128
+ [component="topic/event"], [component="topic/necro-post"] {
129
+ &.timeline-event {
130
+ .timeline-text {
131
+ line-height: 16px;
132
+ font-size: 0.75rem;
133
+ }
130
134
  }
131
135
  }
132
136
  }
@@ -2,7 +2,7 @@
2
2
  <div class="timeline-badge">
3
3
  <i class="fa {{{ if ./icon }}}{./icon}{{{ else }}}fa-circle{{{ end }}} small"></i>
4
4
  </div>
5
- <span class="timeline-text small d-flex align-items-center gap-1">
5
+ <span class="timeline-text small d-flex align-items-center gap-1 flex-wrap">
6
6
  {./text}
7
7
  </span>
8
8
  {{{ if privileges.isAdminOrMod }}}
@@ -93,7 +93,7 @@
93
93
  </div>
94
94
  </div>
95
95
 
96
- <div class="col-md-3 col-sm-3 teaser d-none d-md-block overflow-hidden align-selft-start" component="topic/teaser">
96
+ <div class="col-md-3 col-sm-3 teaser d-none d-md-block overflow-hidden align-self-start" component="topic/teaser">
97
97
  <div class="lastpost background-link-container border-start border-2 h-100" style="border-color: {./category.bgColor}!important;">
98
98
  <a class="background-link" href="{config.relative_path}/topic/{./slug}/{./teaser.index}"></a>
99
99
  {{{ if ./unreplied }}}