nodebb-plugin-link-preview 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/library.js +3 -3
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -146,7 +146,7 @@ async function process(content, opts) {
146
146
  }
147
147
 
148
148
  case 'attachment': {
149
- attachmentHtml += `<div class="col-lg-6">${html}</div>`;
149
+ attachmentHtml += html;
150
150
  break;
151
151
  }
152
152
  }
@@ -180,7 +180,7 @@ async function process(content, opts) {
180
180
  }
181
181
 
182
182
  case 'attachment': {
183
- attachmentHtml += `<div class="col-6">${html}</div>`;
183
+ attachmentHtml += html;
184
184
  break;
185
185
  }
186
186
  }
@@ -211,7 +211,7 @@ async function process(content, opts) {
211
211
  }
212
212
 
213
213
  content = $.html();
214
- content += attachmentHtml ? `\n\n<div class="row">${attachmentHtml}</div>` : '';
214
+ content += attachmentHtml ? `\n\n<div class="row"><div class="col-12">${attachmentHtml}</div></div>` : '';
215
215
  return content;
216
216
  }
217
217
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-link-preview",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A starter kit for quickly creating NodeBB plugins",
5
5
  "main": "library.js",
6
6
  "repository": {