Admin tables: action column keeps its width, email wraps, shorter dates; no sideways scroll needed

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-11 07:41:50 -05:00
parent 6a21b4dc62
commit 9939c0487f
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -8,7 +8,9 @@
<link rel="icon" type="image/png" href="/logo-icon.png">
<link rel="stylesheet" href="/assets/site.css?v=20260910h">
<style>
.adm-table{width:100%;min-width:max-content} /* never squeeze columns until the last one clips: the wrapper scrolls instead */
.adm-table{width:100%;table-layout:auto}
.adm-table td.act,.adm-table th:last-child{width:1%;white-space:nowrap} /* the action column keeps its full width; text columns give way */
.adm-table td:first-child{overflow-wrap:anywhere;word-break:break-word}
.adm-table th,.adm-table td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:13.5px}
.adm-table td.when{white-space:nowrap}
.adm-table th{color:var(--muted);font-size:11.5px;text-transform:uppercase;letter-spacing:.08em}
@@ -308,6 +310,6 @@
</div>
<script src="/assets/common.js?v=20260910c"></script>
<script src="/assets/admin.js?v=20260911a"></script>
<script src="/assets/admin.js?v=20260911b"></script>
</body>
</html>
+1 -1
View File
@@ -18,7 +18,7 @@
finally { btn.disabled = false; }
};
}
const when = ts => ts ? new Date(Number(ts)).toLocaleString() : '';
const when = ts => ts ? new Date(Number(ts)).toLocaleString([], { month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit' }) : '';
let rates = {}, sizes = [], houseOwner = 'house@instantadpay.com';
// ── sign-in ──