Plany: stopka edytora - podsumowanie dni/cwiczen/serii tylko na kroku 2 (kroki 1 i 3 bez belki)
This commit is contained in:
@@ -562,18 +562,26 @@ export default function PlanEditor() {
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* sticky stopka: tylko belka podsumowania (akcje Dalej/Zapisz + „<” są w menu kontekstowym topbar);
|
||||
{/* sticky stopka: podsumowanie tylko na kroku 2 (krok 1 = brak dni, krok 3 = PlanSummary);
|
||||
błędy zapisu zawsze. Akcje Dalej/Zapisz + „<” są w menu kontekstowym topbar;
|
||||
na mobile pod stałym dolnym paskiem topmenu (50px = pt-2 + wiersz 34px + pb) + safe-area */}
|
||||
<div className="sticky bottom-0 -mx-4 px-4 py-3 bg-bg/95 backdrop-blur border-t border-line mt-2 md:-mx-8 md:px-8 max-md:bottom-[calc(50px+max(0.5rem,env(safe-area-inset-bottom)))]">
|
||||
{error && <ErrorText>{error}</ErrorText>}
|
||||
<div className="text-dim text-[0.8125rem]">
|
||||
{dayCountLabel(totals.days)} · {exerciseCountLabel(totals.exercises)} ·{' '}
|
||||
{setCountLabel(totals.sets)}
|
||||
{totals.emptyWeeks > 0 && (
|
||||
<span className="text-warn"> · {weekCountLabel(totals.emptyWeeks)} bez ćwiczeń</span>
|
||||
{(step === 2 || error) && (
|
||||
<div className="sticky bottom-0 -mx-4 px-4 py-3 bg-bg/95 backdrop-blur border-t border-line mt-2 md:-mx-8 md:px-8 max-md:bottom-[calc(50px+max(0.5rem,env(safe-area-inset-bottom)))]">
|
||||
{error && <ErrorText>{error}</ErrorText>}
|
||||
{step === 2 && (
|
||||
<div className="text-dim text-[0.8125rem]">
|
||||
{dayCountLabel(totals.days)} · {exerciseCountLabel(totals.exercises)} ·{' '}
|
||||
{setCountLabel(totals.sets)}
|
||||
{totals.emptyWeeks > 0 && (
|
||||
<span className="text-warn">
|
||||
{' '}
|
||||
· {weekCountLabel(totals.emptyWeeks)} bez ćwiczeń
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ConfirmDialog
|
||||
open={confirmExit}
|
||||
|
||||
Reference in New Issue
Block a user