Skip to content

Commit 3c740e0

Browse files
committed
Improve admin table responsiveness
1 parent a13097a commit 3c740e0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

app/templates/admin_home.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<title>T-RADAR 관리자</title>
77
<style>
88
* { box-sizing:border-box; }
9-
body { font-family: system-ui, sans-serif; background:#f6f8fc; margin:0; padding:2rem; }
9+
body { font-family: system-ui, sans-serif; background:#f6f8fc; margin:0; padding:2rem; overflow-x:hidden; }
1010
header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; }
1111
h1 { margin:0; }
12-
.section { background:#fff; padding:1.5rem; border-radius:16px; box-shadow:0 8px 24px rgba(15,23,42,0.08); margin-bottom:1.5rem; }
12+
.section { background:#fff; padding:1.5rem; border-radius:16px; box-shadow:0 8px 24px rgba(15,23,42,0.08); margin-bottom:1.5rem; overflow-x:auto; }
1313
.section h2 { margin:0; font-size:1.1rem; }
1414
.section-header { display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; margin-bottom:0.75rem; }
1515
.summary { color:#475569; font-size:0.9rem; }
16-
table { width:100%; border-collapse:collapse; font-size:0.85rem; }
17-
th, td { text-align:left; padding:0.6rem 0.5rem; border-bottom:1px solid #e2e8f0; vertical-align:top; font-size:0.82rem; }
16+
table { width:max-content; min-width:100%; border-collapse:collapse; font-size:0.85rem; }
17+
th, td { text-align:left; padding:0.6rem 0.5rem; border-bottom:1px solid #e2e8f0; vertical-align:top; font-size:0.82rem; overflow-wrap:anywhere; word-break:break-word; }
1818
th { color:#64748b; font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }
1919
tbody tr:hover { background:#f8fafc; }
2020
.muted { color:#64748b; font-size:0.8rem; }
@@ -24,22 +24,22 @@
2424
.sortable { cursor:pointer; user-select:none; white-space:nowrap; }
2525
.sort-indicator { margin-left:0.35rem; color:#94a3b8; font-size:0.75rem; }
2626
.narrow { white-space:nowrap; width:1%; }
27-
.col-user-agent { max-width:clamp(240px, 24vw, 320px); width:clamp(240px, 24vw, 320px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
27+
.col-user-agent { max-width:clamp(260px, 40vw, 700px); width:clamp(260px, 40vw, 700px); white-space:normal; overflow:visible; text-overflow:unset; }
2828
a.button { text-decoration:none; padding:0.5rem 0.8rem; border-radius:10px; background:#e2e8f0; color:#0f172a; }
2929
.badge { display:inline-block; padding:0.2rem 0.5rem; border-radius:999px; background:#e2e8f0; font-size:0.75rem; color:#334155; }
3030
.pagination { display:flex; align-items:center; gap:0.35rem; margin-top:0.8rem; flex-wrap:wrap; }
3131
.page-btn { border:1px solid #e2e8f0; background:#fff; color:#0f172a; padding:0.25rem 0.55rem; border-radius:8px; cursor:pointer; font-size:0.85rem; }
3232
.page-btn.is-active { background:#1d4ed8; color:#fff; border-color:#1d4ed8; }
3333
.page-btn:disabled { cursor:default; opacity:0.4; }
3434
@media (max-width: 768px) {
35-
body { padding:0.75rem; }
36-
.section { padding:0.85rem; border-radius:12px; }
35+
body { padding:0.5rem; }
36+
.section { padding:0.6rem; border-radius:12px; }
3737
header { flex-direction:column; align-items:flex-start; gap:0.6rem; }
38-
table { font-size:0.68rem; }
39-
th, td { padding:0.35rem 0.3rem; font-size:0.65rem; }
40-
.summary { font-size:0.78rem; }
41-
.muted { font-size:0.7rem; }
42-
.col-user-agent { max-width:clamp(140px, 34vw, 200px); width:clamp(140px, 34vw, 200px); }
38+
table { font-size:0.6rem; }
39+
th, td { padding:0.3rem 0.25rem; font-size:0.58rem; }
40+
.summary { font-size:0.68rem; }
41+
.muted { font-size:0.62rem; }
42+
.col-user-agent { max-width:clamp(140px, 44vw, 240px); width:clamp(140px, 44vw, 240px); }
4343
}
4444
</style>
4545
</head>

0 commit comments

Comments
 (0)