From 86507ed7b57562d4bdacc6c1b167eec1e3ef892f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Fri, 9 Oct 2026 11:44:52 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Integra=C3=A7=C3=B5es=20is=20a=20tidy=20?= =?UTF-8?q?list,=20with=20the=20long=20text=20under=20"Detalhes"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The page was a grid of cards stuffed with paragraphs (Tiny's dates, the freight's box and cubage, the Firefox how-to), so the cards had uneven heights and left gaps. Each integration is now one row: name, state, one line of summary and its main button. Everything else (dates, numbers, how-tos, secondary buttons like Reconectar or Trocar pasta) opens under "Detalhes", below its own row, without moving the others around; what is open stays open through the automatic refresh. Mercado Pago's "Verificar conta" now shows its result there instead of a 60-second message. Co-Authored-By: Claude Opus 5.5 --- web/kanban.css | 37 ++++++--- web/kanban.html | 2 +- web/kanban.js | 200 +++++++++++++++++++++++++++++------------------- 3 files changed, 150 insertions(+), 89 deletions(-) diff --git a/web/kanban.css b/web/kanban.css index 69a8cff..c38b7d9 100644 --- a/web/kanban.css +++ b/web/kanban.css @@ -249,21 +249,40 @@ main{padding:0 24px 24px} .charttable summary{cursor:pointer} .charttable table{margin-top:8px} #stats-stages .swatch{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--c);margin-right:8px} -.grid4{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px} -.integration{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:12px;border:1px solid var(--line2);background:var(--card)} -.integration .head{display:flex;align-items:center;gap:8px} -.integration .head b{font-size:15px} -.integration .head .dot{width:9px;height:9px;border-radius:999px;background:var(--dot,#5B6168)} -.integration .head em{margin-left:auto;font-style:normal;font-size:13.5px;font-weight:700;color:var(--dotx,var(--muted))} -.integration p{margin:0;font-size:14px;color:var(--muted)} -.integration .buttons{margin-top:auto} -.integration code.flag{font-size:13px;padding:6px 8px;border-radius:8px;background:var(--card2);color:var(--tx2);user-select:all;overflow-wrap:anywhere} +/* Integrações: one row per service; long text opens under "Detalhes". */ +.integ-list{border:1px solid var(--line2);border-radius:12px;background:var(--card);overflow:hidden} +.integ+.integ{border-top:1px solid var(--line)} +.integ-main{display:grid;grid-template-columns:minmax(170px,230px) 150px minmax(0,1fr) auto 104px;align-items:center;gap:16px;padding:12px 16px 12px 18px;min-height:58px} +.integ-name{display:flex;align-items:center;gap:10px;min-width:0} +.integ-name b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} +.integ-name .dot{width:8px;height:8px;border-radius:999px;background:var(--c);flex-shrink:0} +.integ-state{justify-self:start;font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:999px;color:var(--c);background:color-mix(in srgb,var(--c) 13%,transparent);white-space:nowrap} +.integ-summary{color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} +.integ-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center} +.integ-toggle{display:flex;justify-content:flex-end} +.integ-more{display:inline-flex;align-items:center;gap:6px} +.integ-more svg{transition:transform .15s} +.integ-more[aria-expanded=true]{color:var(--tx)} +.integ-more[aria-expanded=true] svg{transform:rotate(180deg)} +.integ-details{margin:0 16px 14px 36px;padding:14px 16px;border-radius:10px;background:var(--panel);border:1px solid var(--line);display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--tx2)} +.integ-details p{margin:0;color:var(--muted)} +.integ-details dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 24px;margin:0} +.integ-details dt{color:var(--faint)} +.integ-details dd{margin:0;overflow-wrap:anywhere} +.integ-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px} +.integ-details code.flag{font-size:13px;padding:2px 6px;border-radius:6px;background:var(--card2);color:var(--tx);user-select:all;overflow-wrap:anywhere} table.log{width:100%;border-collapse:collapse;font-size:14px} table.log th{text-align:left;color:var(--faint);font-weight:600;padding:8px 12px;border-bottom:1px solid var(--line)} table.log td{padding:10px 12px;border-bottom:1px solid #1E2226;vertical-align:top} .good{color:var(--ok);font-weight:600}.retry{color:var(--warn);font-weight:600} @media (max-width:900px){ + .integ-main{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px} + .integ-name b{white-space:normal} + .integ-summary{grid-column:1/-1;white-space:normal} + .integ-actions{justify-content:flex-start;flex-wrap:wrap} + .integ-toggle:empty{display:none} + .integ-details{margin-left:16px} .top{flex-wrap:wrap;height:auto;padding:10px 16px;gap:10px} .searchbox{order:5;width:100%;flex-basis:100%;margin-left:0} .search{width:100%} diff --git a/web/kanban.html b/web/kanban.html index 421a35c..e0eb515 100644 --- a/web/kanban.html +++ b/web/kanban.html @@ -97,7 +97,7 @@