rails_db_inspector 0.6.0 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08c6511ec0aa29b649a9939c4bf17ea042346cc99a5bdb645382764621589da6'
4
- data.tar.gz: 9a171cdcd171cfd8a64488bb2b5f570175d9e26979866743c5f8571c3fd1ed5f
3
+ metadata.gz: 062e49b0d6e8ea21c7191c3bce86312224e291e88da324e6f7979e0d7ff008ef
4
+ data.tar.gz: 993feae0bd06b1e55d7555dc0c58954c94e90019e452521aec98c009c2b7e960
5
5
  SHA512:
6
- metadata.gz: 3a1df1506a50af86702c516e9994b54a1ec488c3dfa23115c27836c6699a3eae10f961239bc361da14771d26a995ef3c80864d0e11cdd7629e381a71d4d73db7
7
- data.tar.gz: bc17122e5f23aadfb6edd76911f3d26b6fac1d88c13b8ac048f3134525a22ae5add60d188702055297f848cf18d7fffd1de2e8e4fd74c9f63eccea184ebbfcfb
6
+ metadata.gz: fb081c6a9bc139d1131bdb7c307e86b1ee02133ef5b9eaa44e068934281c48e60c6fa00d5b2fc2d4f214ce49f68a3c63a754b6859540ec04c2b795ba59e8526b
7
+ data.tar.gz: 5efa9e88d975f910d91ff3723150de7bda746ae5108b16e945b68e53723242100436d94ed53df5d4ae28b020975a7a261d88db8e276e81f785859decec9ab348
@@ -82,9 +82,9 @@
82
82
  /* Health summary bar */
83
83
  #health-bar { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; background: #fafbfc; }
84
84
  #health-bar .health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
85
- #health-bar .health-stat { font-size: 11px; color: #6b7280; display: flex; align-items: center; gap: 4px; }
85
+ #health-bar .health-stat { font-size: 11px; color: #6b7280; display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
86
86
  #health-bar .health-stat .stat-icon { font-size: 12px; flex-shrink: 0; }
87
- #health-bar .health-stat .stat-val { font-weight: 700; color: #111827; }
87
+ #health-bar .health-stat .stat-val { font-weight: 700; color: #111827; overflow: hidden; text-overflow: ellipsis; }
88
88
  #health-bar .health-stat.warn .stat-val { color: #d97706; }
89
89
  #health-bar .health-stat.danger .stat-val { color: #dc2626; }
90
90
  #health-bar .health-stat.ok .stat-val { color: #059669; }
@@ -302,7 +302,8 @@
302
302
  html += '<div class="health-stat"><span class="stat-icon">&#x1F4BE;</span> DB size: <span class="stat-val">' + formatBytes(totalDbSize) + '</span></div>';
303
303
  html += '<div class="health-stat"><span class="stat-icon">&#x1F4C0;</span> Data / Index: <span class="stat-val">' + formatBytes(totalDataSize) + ' / ' + formatBytes(totalIndexSize) + '</span></div>';
304
304
  if (largestTable) {
305
- html += '<div class="health-stat warn" style="cursor:pointer;" onclick="event.preventDefault();window._erd.select(\'' + largestTable + '\');window._erd.centerOn(\'' + largestTable + '\');"><span class="stat-icon">&#x1F3CB;</span> Largest: <span class="stat-val">' + largestTable + ' (' + formatBytes(largestTableSize) + ')</span></div>';
305
+ var displayName = largestTable.length > 20 ? largestTable.substring(0, 20) + '' : largestTable;
306
+ html += '<div class="health-stat warn" style="cursor:pointer;grid-column:1/-1;" title="' + largestTable + ' (' + formatBytes(largestTableSize) + ')" onclick="event.preventDefault();window._erd.select(\'' + largestTable + '\');window._erd.centerOn(\'' + largestTable + '\');"><span class="stat-icon">&#x1F3CB;</span> Largest: <span class="stat-val">' + displayName + ' (' + formatBytes(largestTableSize) + ')</span></div>';
306
307
  }
307
308
  }
308
309
  if (healthStats.missingIndexes > 0) {
@@ -1,3 +1,3 @@
1
1
  module RailsDbInspector
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_db_inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - samuel-murphy