From de7f55e5d3459484aca2eee80c0d8a845d91b895 Mon Sep 17 00:00:00 2001 From: Vinicius Garcia Date: Thu, 8 Oct 2026 18:09:03 +0000 Subject: [PATCH] fix(entries): linha de registro no mobile (acoes em linha propria abaixo de sm) --- src/app/(app)/entry-list.tsx | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/app/(app)/entry-list.tsx b/src/app/(app)/entry-list.tsx index eeecc36..5881244 100644 --- a/src/app/(app)/entry-list.tsx +++ b/src/app/(app)/entry-list.tsx @@ -80,8 +80,15 @@ export function EntryList({ entries, catalog, today, currentWeek, loadMoreHref } ); + /** + * Below `sm` the row is a grid: play, text and duration on top and the three actions on a line of their own, + * so the description keeps its width on a 360 px phone. From `sm` the actions wrapper disappears (`contents`) and everything is one row. + */ const entryRow = (entry: EntryView, nested = false) => ( -
  • +
  • {playButton(entry)}

    {entry.description || "Sem descrição"}

    @@ -94,17 +101,19 @@ export function EntryList({ entries, catalog, today, currentWeek, loadMoreHref } {entry.endDate && entry.endDate !== entry.date ? " (+1)" : ""}

    - - {entry.endedAt !== null ? ( - + ) : ( + + )} + - ) : ( - - )} - +
  • ); @@ -177,7 +186,7 @@ export function EntryList({ entries, catalog, today, currentWeek, loadMoreHref } {running &&

    + em andamento

    } {/* Same width as the three buttons of a single row (edit, duplicate, remove) plus their gaps, so group totals line up. */} - + {open && group.entries.map((entry) => entryRow(entry, true))}