clone

a self-hosted multitenant nostr relay with sites, file storage, git hosting, and inbox and outbox delivery

keep the agent table in its column widths and show the first active agent's activity

Dami committed 804d5cc
commit
804d5ccf436b895509287d0f73cc02eecff36862
parent
e83c920902fe954e262fa70a07e2ff880b8580f5
author
Dami <dami.etoile@gmail.com>
4 files changed, +18 -5
Minternal/webui/agents_test.go4++++
Minternal/webui/manage.html2+-
Minternal/webui/style.css5+++--
Minternal/webui/webui.go12++++++++++--
M internal/webui/agents_test.go +4 -0
M internal/webui/manage.html +1 -1
M internal/webui/style.css +3 -2
@@ -141,7 +141,8 @@ agent-card table{border-collapse:collapse;font:13px var(--mono);width:auto;margi
141141 agent-card th{text-align:left;font-weight:normal;color:var(--muted);width:9em;padding:3px 0;border:0;vertical-align:top}agent-card td{padding:3px 0;border:0;overflow-wrap:anywhere}142142 agent-card td code{color:var(--muted)}143143 agent-card p{margin:8px 0 0}agent-card rpc-form{display:inline-block;border:0;padding:0;margin:0 8px 0 0;vertical-align:top}agent-card rpc-form output:empty{display:none}144-agent-card p>a{font:12px var(--mono)}144+agent-card p>a{display:inline-block;font:12px var(--mono);line-height:29px;vertical-align:top}145+#rows:has(td[data-state]){table-layout:fixed}#rows:has(td[data-state]) td:nth-child(3){width:110px}#rows:has(td[data-state]) td:last-child{width:150px}145146 [data-state=active],#rows td[data-state=active]{color:var(--accent)}[data-state=paused],#rows td[data-state=paused]{color:var(--bark)}[data-state=revoked],#rows td[data-state=revoked]{color:var(--alert)}146147 agent-grant{display:block;border-bottom:1px solid var(--line);padding:10px 0;max-width:720px}147148 agent-grant label{display:inline-block;margin:0 10px 6px 0;vertical-align:top;font:13px var(--sans);color:var(--muted)}
@@ -232,6 +233,6 @@ html,body{overflow:auto}
232233 #navigation-status:not(:empty),#session-status:not(:empty){position:absolute;bottom:100%;left:0;right:0;padding:6px 12px;background:var(--rail);border-top:1px solid var(--line);white-space:normal}233234 #split,#split>tbody,#split>tbody>tr,#split>tbody>tr>td{display:block;width:auto}234235 #tree{border-right:0;border-bottom:1px solid var(--line)}235-#rows{table-layout:fixed}#rows td{white-space:normal;overflow-wrap:anywhere;height:auto;padding:8px 6px;line-height:1.35}#rows td:first-child{width:90px}#rows td:last-child{width:80px}connect-list #rows td:nth-child(2),connect-list #rows th:nth-child(2){display:none}connect-list #rows td:nth-child(3),connect-list #rows td:last-child{width:auto}connect-list #rows td:last-child{white-space:normal}connect-list #rows td:last-child button{margin:2px 0}236+#rows{table-layout:fixed}#rows td{white-space:normal;overflow-wrap:anywhere;height:auto;padding:8px 6px;line-height:1.35}#rows td:first-child{width:90px}#rows td:last-child{width:80px}#rows:has(td[data-state]) td:nth-child(3),#rows:has(td[data-state]) th:nth-child(3){display:none}#rows:has(td[data-state]) td:last-child{width:80px}connect-list #rows td:nth-child(2),connect-list #rows th:nth-child(2){display:none}connect-list #rows td:nth-child(3),connect-list #rows td:last-child{width:auto}connect-list #rows td:last-child{white-space:normal}connect-list #rows td:last-child button{margin:2px 0}236237 #grid,#gridhead,h2:has(+#gridhead){display:none}237238 }
M internal/webui/webui.go +10 -2