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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 062e49b0d6e8ea21c7191c3bce86312224e291e88da324e6f7979e0d7ff008ef
|
|
4
|
+
data.tar.gz: 993feae0bd06b1e55d7555dc0c58954c94e90019e452521aec98c009c2b7e960
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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">💾</span> DB size: <span class="stat-val">' + formatBytes(totalDbSize) + '</span></div>';
|
|
303
303
|
html += '<div class="health-stat"><span class="stat-icon">📀</span> Data / Index: <span class="stat-val">' + formatBytes(totalDataSize) + ' / ' + formatBytes(totalIndexSize) + '</span></div>';
|
|
304
304
|
if (largestTable) {
|
|
305
|
-
|
|
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">🏋</span> Largest: <span class="stat-val">' + displayName + ' (' + formatBytes(largestTableSize) + ')</span></div>';
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
309
|
if (healthStats.missingIndexes > 0) {
|