Dashboard compressa: anteprima accanto allo stato, barre della giornata, icona sua
Alberto ha chiesto una Dashboard compressa, su cui restare a guardare il motore che lavora. Il confronto delle schermate del 25/11 aveva lasciato aperti quattro difetti. - Anteprima: tiene le proporzioni 420 × 236 e si stringe con la pagina (fra 220 e 420 px, il 38% del cruscotto) restando accanto allo stato; i tetti vanno in due per due quando la colonna dello stato è stretta (@container). A 860 × 900 come a 1440 × 900 anteprima, stato, tetti e prima riga della cronologia stanno nel primo schermo; al telefono una colonna sola come prima. - Striscia della giornata: alta 30 px, le sessioni sono barre di quasi tutta l'altezza (margini in percentuale), non più punti; titolo e riassunto senza il vuoto quando vanno a capo. - «Mostra tutta (N)» della coda: margine interno delle righe (la regola di .btn.collegamento lo azzerava). - layout-dashboard.svg ridisegnata in casa: un tachimetro in un riquadro, diversa dai quattro quadrati della Libreria. Schermate 06, 11 e 14 rifatte con tools/Febe.Schermate e differenze.md aggiornato (che cosa ora combacia, che cosa resta diverso). DashboardInterfaceTests controlla a 860 × 900 l'anteprima accanto allo stato, le proporzioni, la prima riga della cronologia nel primo schermo, il margine di «Mostra tutta» e le barre alte; al telefono la colonna sola. Una riga in docs/decisioni.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2e435db396
commit
e937347400
13 files changed
+85
-39
No files matched your search
@@ -663,21 +663,32 @@ a.stato:hover{border-color:var(--bordo-forte)}
|
||||
[data-pagina=dashboard] .arresto .riprendi-arresto{display:none}
|
||||
/* Dashboard (spec §7.9, tappa D1): compact, preview always visible at the top with what is happening and the budgets */
|
||||
.dashboard{gap:18px}
|
||||
.cruscotto{display:flex;align-items:stretch;gap:20px;padding:14px 16px}
|
||||
.cruscotto .anteprima{width:420px}
|
||||
.cruscotto .anteprima .quadro{height:236px}
|
||||
.cruscotto-lato{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:14px}
|
||||
.cruscotto{display:flex;align-items:flex-start;gap:20px;padding:14px 16px}
|
||||
/* The preview keeps its proportions (420 × 236 at most) and shrinks with the page, staying beside the status down to
|
||||
the phone, so that preview, status, budgets and the start of the history fit the first screen (spec §7.9) */
|
||||
.cruscotto .anteprima{width:clamp(220px,38%,420px)}
|
||||
.cruscotto .anteprima .quadro{height:auto;aspect-ratio:420/236}
|
||||
.cruscotto-lato{flex:1;min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:14px;container-type:inline-size}
|
||||
@container (max-width:600px){
|
||||
.cruscotto-lato .tetti{grid-template-columns:repeat(2,minmax(0,1fr))}
|
||||
.cruscotto-lato .tetto:nth-child(3){border-left:0}
|
||||
.cruscotto-lato .tetto:nth-child(n+3){border-top:1px solid var(--bordo)}
|
||||
.cruscotto-lato .blocco-tetti .tetto{padding:7px 12px 8px;gap:4px}
|
||||
}
|
||||
.cruscotto-lato .ora-testo .cosa{margin-top:8px}
|
||||
.blocco-tetti .testa-blocco{margin-bottom:6px}
|
||||
.blocco-tetti h2{margin:0;font-size:14px;font-weight:650}
|
||||
.blocco-tetti .tetti{border:1px solid var(--bordo);border-radius:8px}
|
||||
.blocco-tetti .tetto{padding:9px 12px 10px;gap:5px}
|
||||
.blocco-tetti .tetto .valore b{font-size:17px}
|
||||
.oggi-basso .striscia{height:22px}
|
||||
.oggi-basso .testa-blocco{row-gap:6px}
|
||||
.oggi-basso .testa-blocco h2{margin:0}
|
||||
.oggi-basso .striscia{height:30px}
|
||||
.oggi-basso .striscia .freno{top:4px;bottom:4px}
|
||||
.storia-coda{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
|
||||
.elenco-attivita.stretto li{min-height:46px;padding:8px 14px}
|
||||
.storia-righe li{align-items:flex-start}
|
||||
.piede-elenco{display:block;width:100%;padding:9px 14px;text-align:left;border-top:1px solid var(--bordo)}
|
||||
.btn.collegamento.piede-elenco{display:block;width:100%;padding:10px 14px 11px;text-align:left;border-top:1px solid var(--bordo);border-radius:0 0 var(--r-pannello) var(--r-pannello)}
|
||||
.miniature{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;min-height:44px}
|
||||
.miniatura{position:relative;width:44px;height:44px;padding:0;border:0;border-radius:3px;overflow:hidden;background:var(--rialzo);cursor:zoom-in;flex:none}
|
||||
.miniatura img{display:block;width:100%;height:100%;object-fit:cover}
|
||||
@@ -705,14 +716,13 @@ a.stato:hover{border-color:var(--bordo-forte)}
|
||||
.riga-ordine.spenta b,.riga-ordine.spenta .posizione{color:var(--testo-3)}
|
||||
.ordine-account{margin-top:10px}
|
||||
@media (max-width:1000px){
|
||||
.cruscotto{flex-direction:column}
|
||||
.cruscotto .anteprima{width:100%}
|
||||
.storia-coda{grid-template-columns:minmax(0,1fr)}
|
||||
}
|
||||
@media (max-width:560px){
|
||||
/* On the phone the preview stays at the top but lower, so that what is happening and the budgets fit too */
|
||||
.cruscotto{padding:12px;gap:14px}
|
||||
.cruscotto .anteprima .quadro{height:196px}
|
||||
/* On the phone one column: the preview at the top, whole width but lower, then what is happening and the budgets */
|
||||
.cruscotto{flex-direction:column;align-items:stretch;padding:12px;gap:14px}
|
||||
.cruscotto .anteprima{width:100%}
|
||||
.cruscotto .anteprima .quadro{aspect-ratio:auto;height:196px}
|
||||
.miniatura,.miniature-altre{width:40px;height:40px}
|
||||
.miniature{min-height:40px}
|
||||
.anteprima-palco{height:min(52vh,460px)}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3.5" y="3.5" width="7" height="9" rx="1.5"/>
|
||||
<rect x="13.5" y="3.5" width="7" height="5" rx="1.5"/>
|
||||
<rect x="13.5" y="11.5" width="7" height="9" rx="1.5"/>
|
||||
<rect x="3.5" y="15.5" width="7" height="5" rx="1.5"/>
|
||||
<rect x="3" y="4" width="18" height="16" rx="2.5"/>
|
||||
<path d="M7 16.5a5 5 0 0 1 10 0"/>
|
||||
<line x1="12" y1="16.5" x2="14.5" y2="13"/>
|
||||
<line x1="7" y1="8" x2="10" y2="8"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 345 B |
@@ -49,10 +49,11 @@ export function dayStrip(day, { stopOpen = false } = {}) {
|
||||
case 'Session':
|
||||
case 'CurrentSession':
|
||||
case 'PlannedSession': {
|
||||
// Bars of nearly the whole height, uneven by a few percent (mockup 06): in proportion to the strip, so that
|
||||
// the lower strip of the Dashboard draws bars and not dots.
|
||||
const w = wobble(ms(s.start) / 60000);
|
||||
const inset = 6 + Math.round(w * 4);
|
||||
el = h(`span.sess${s.kind === 'CurrentSession' ? '.ora' : ''}${s.kind === 'PlannedSession' ? '.prev' : ''}`,
|
||||
{ style: { ...style, top: `${inset}px`, bottom: `${6 + Math.round((1 - w) * 4)}px` } });
|
||||
{ style: { ...style, top: `${(10 + w * 8).toFixed(1)}%`, bottom: `${(10 + (1 - w) * 8).toFixed(1)}%` } });
|
||||
kinds.add(s.kind === 'PlannedSession' ? 'prossime' : 'sessione');
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user