Front: edytor planu - nazwa dnia steppera w tym samym miejscu niezaleznie od widocznosci strzalek (rezerwowana przestrzen)
This commit is contained in:
@@ -582,8 +582,10 @@ export default function PlanEditor() {
|
||||
ruch zapętlony po dniach treningowych (za Poniedziałkiem w lewo
|
||||
ostatni dzień tygodnia, w prawo — kolejny dostępny) */}
|
||||
<div className="mt-3 flex items-center justify-between gap-3">
|
||||
{daySeq.length > 1 ? (
|
||||
<div className="flex items-center gap-1">
|
||||
{/* Przy jednym dniu strzałek nie ma, ale ich miejsce zostaje —
|
||||
nazwa dnia zawsze w tym samym punkcie układu */}
|
||||
<div className="flex items-center gap-1">
|
||||
{daySeq.length > 1 ? (
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Poprzedni dzień"
|
||||
@@ -592,9 +594,13 @@ export default function PlanEditor() {
|
||||
>
|
||||
<ChevronLeft className="h-5 w-5" />
|
||||
</button>
|
||||
<H3 aria-live="polite" className="mb-0 min-w-[8.75rem] text-center">
|
||||
{DAY_NAMES[activeDay.dayOfWeek]}
|
||||
</H3>
|
||||
) : (
|
||||
<span aria-hidden="true" className="h-10 w-10 shrink-0" />
|
||||
)}
|
||||
<H3 aria-live="polite" className="mb-0 min-w-[8.75rem] text-center">
|
||||
{DAY_NAMES[activeDay.dayOfWeek]}
|
||||
</H3>
|
||||
{daySeq.length > 1 ? (
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Następny dzień"
|
||||
@@ -603,10 +609,10 @@ export default function PlanEditor() {
|
||||
>
|
||||
<ChevronRight className="h-5 w-5" />
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<H3 className="mb-0">{DAY_NAMES[activeDay.dayOfWeek]}</H3>
|
||||
)}
|
||||
) : (
|
||||
<span aria-hidden="true" className="h-10 w-10 shrink-0" />
|
||||
)}
|
||||
</div>
|
||||
<Badge color={activeDay.exercises.length > 0 ? 'green' : 'gray'}>
|
||||
{activeDay.exercises.length > 0
|
||||
? exerciseCountLabel(activeDay.exercises.length)
|
||||
|
||||
Reference in New Issue
Block a user