fix: a proof card shows the film it prints, the Kanban's tooltips stay whole on screen, and a session that changed is a warning (DTF-WEB-26)

A proof card bills 0 m: the board now carries proof_film_cm per item (the
same measure as Números), the card reads 'prova · 0,15 m', the column
totals count it, and the drawer says 'prova sem custo', the proof's film
and 'Folha do pedido'. The [data-tip] tooltips were CSS boxes inside the
card, cut by the column and over the card below; one box fixed to the
window now sits under the element, or over it near the bottom, inside the
screen. 'Sua conta ou sessão mudou' is guidance shown as a warning, so it
stays out of Sentry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-30 16:45:59 -03:00
parent 1a35dea7a5
commit 885d211ae2
6 changed files with 52 additions and 16 deletions

View File

@@ -385,14 +385,9 @@ main{padding:0}
.card.drop-before{box-shadow:0 -3px 0 0 var(--acc)}
.card.drop-after{box-shadow:0 3px 0 0 var(--acc)}
/* A short note on hover or focus, for what a mark means. */
[data-tip]{position:relative}
[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 8px);transform:translate(-50%,-3px);width:max-content;max-width:280px;padding:7px 10px;border-radius:7px;background:var(--ink);color:var(--onink);font:500 12px/1.4 var(--font);letter-spacing:0;text-align:left;white-space:normal;text-transform:none;opacity:0;pointer-events:none;z-index:40;transition:opacity .15s,transform .15s;box-shadow:0 8px 24px -8px rgba(0,0,0,.5)}
[data-tip]:hover::after,[data-tip]:focus-visible::after{opacity:1;transform:translate(-50%,0);transition-delay:.35s}
[data-tip].tip-l::after{left:auto;right:0;transform:translate(0,-3px)}
[data-tip].tip-l:hover::after,[data-tip].tip-l:focus-visible::after{transform:translate(0,0)}
[data-tip].tip-r::after{left:0;transform:translate(0,-3px)}
[data-tip].tip-r:hover::after{transform:translate(0,0)}
[data-tip='']::after{display:none}
/* The tooltip box (kanban.js): fixed to the window, never cut by a column. */
.tipbox{position:fixed;z-index:200;max-width:min(320px,calc(100vw - 16px));padding:7px 10px;border-radius:7px;background:var(--ink);color:var(--onink);font:500 12px/1.4 var(--font);text-align:left;white-space:normal;pointer-events:none;box-shadow:0 8px 24px -8px rgba(0,0,0,.5)}
.tipbox[hidden]{display:none}
@keyframes drop{from{transform:translateY(-6px);opacity:0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes feedline{from{transform:translateX(-100%)}to{transform:translateX(100%)}}