fix(ui): collapse the table to name/state/actions below 640px
At 390px the ID, image, CPU and mem columns were either clipped or wrapped to three lines. Hide them on narrow viewports and let the action buttons sit in a compact row, so the dashboard stays readable in a phone-width chat panel.
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-11 01:56:52
Commitae09ad0d
Parentsb9407190
Changed files
src/plugin_docker.c+6−1■■■■■
1 file+6−1
Diff
src/plugin_docker.c+6−1■■■■■
index f68942f..cb4cbbc 100644
--- a/src/plugin_docker.c
+++ b/src/plugin_docker.c
@@ -767,7 +767,12 @@ static int mode_html(int embed)
767767 ".empty{padding:22px 8px;text-align:center;color:var(--muted)}"
768768 ".hide{display:none}"
769769 "@media(max-width:640px){body{padding:10px}.card{padding:12px}"
770- "th:nth-child(3),td:nth-child(3),th:nth-child(5),td:nth-child(5){display:none}}"
770+ ".tblwrap{overflow-x:visible}"
771+ "th:nth-child(1),td:nth-child(1),th:nth-child(3),td:nth-child(3),"
772+ "th:nth-child(5),td:nth-child(5),th:nth-child(6),td:nth-child(6){display:none}"
773+ "td{padding:8px 4px}th{padding:6px 4px}"
774+ "td:nth-child(2){white-space:nowrap;font-weight:600}"
775+ ".acts{gap:4px}button.sm{padding:4px 8px;font-size:11px}}"
771776 "</style></head><body><div class='wrap'>", stdout);
772777
773778 if (!embed)
774779
src/plugin_docker.c+6−1■■■■■
index f68942f..cb4cbbc 100644index f68942f..cb4cbbc 100644
--- a/src/plugin_docker.c--- a/src/plugin_docker.c
+++ b/src/plugin_docker.c+++ b/src/plugin_docker.c
@@ -767,7 +767,12 @@ static int mode_html(int embed)@@ -767,7 +767,12 @@ static int mode_html(int embed)
767 ".empty{padding:22px 8px;text-align:center;color:var(--muted)}"767 ".empty{padding:22px 8px;text-align:center;color:var(--muted)}"
768 ".hide{display:none}"768 ".hide{display:none}"
769 "@media(max-width:640px){body{padding:10px}.card{padding:12px}"769 "@media(max-width:640px){body{padding:10px}.card{padding:12px}"
770- "th:nth-child(3),td:nth-child(3),th:nth-child(5),td:nth-child(5){display:none}}"770+ ".tblwrap{overflow-x:visible}"
771+ "th:nth-child(1),td:nth-child(1),th:nth-child(3),td:nth-child(3),"
772+ "th:nth-child(5),td:nth-child(5),th:nth-child(6),td:nth-child(6){display:none}"
773+ "td{padding:8px 4px}th{padding:6px 4px}"
774+ "td:nth-child(2){white-space:nowrap;font-weight:600}"
775+ ".acts{gap:4px}button.sm{padding:4px 8px;font-size:11px}}"
771 "</style></head><body><div class='wrap'>", stdout);776 "</style></head><body><div class='wrap'>", stdout);
772 777
773 if (!embed)778 if (!embed)
774779