nestjs-web-console 1.0.0 → 1.0.2

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.
@@ -218,7 +218,7 @@ let WebConsoleService = class WebConsoleService {
218
218
  else if (isArray && !entities.length)
219
219
  return 'No records';
220
220
  const columns = noColumns ? [0] : Object.keys(isArray ? entities[0] : entities);
221
- let html = "<table border='1'>";
221
+ let html = "<div style='overflow-x: auto'><table border='1'>";
222
222
  //add header row
223
223
  if (!noColumns) {
224
224
  html += "<thead><tr>";
@@ -233,7 +233,7 @@ let WebConsoleService = class WebConsoleService {
233
233
  html += "<td>" + ((_a = (noColumns ? (isArray ? entities[i] : entities) : (isArray ? entities[i][columns[j]] : entities[columns[j]]))) === null || _a === void 0 ? void 0 : _a.toString()) + "</td>";
234
234
  html += "</tr>";
235
235
  }
236
- html += "</table>";
236
+ html += "</table></div>";
237
237
  return html;
238
238
  }
239
239
  readLine(session, title, opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestjs-web-console",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Web console for NestJs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",