mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
* fix(app): drag agent profiles on phones and tidy their rows On a phone, holding a profile's grip and dragging scrolled the page instead of moving the row. A native drag arms after a short hold and asks the nearest scroll view to stop scrolling through the content-drag context, but only the sheet scroll view provided that context. Usage cards live in a sheet, so they dragged; agent profiles live on a page, so the page scroll took the touch past the touch slop before the list's pan activated. Page scroll views now host content drags too (withContentDrag, used by ScrollView outside a sheet and by PageLayout). docs/drag-reorder.md records the pattern. Settings rows with a long summary, such as the profile sheet's options row, grew several lines tall on a phone: the label column has a zero flex basis, so the summary squeezed it and the label wrapped. A label-only row now keeps the label's width and truncates the summary in the remaining space. Profile rows hang the grip in the leading padding like a Usage card, keep the kebab on the trailing rail, and drop the repeated provider icon and the chevron from the stacked phone layout. * fix(app): keep scroll children intact and summaries beside their chevrons The content-drag context sat between a scroll view and its children, so a native scroll view saw one child and stickyHeaderIndices pinned nothing. The context now wraps the scroll view instead. Content drag gets its own module, content-drag.tsx, with one withContentDrag for both page and sheet scroll views, so the browser tests can lock the scroll lock and the child pass-through. A label-only settings row whose label column reached its 75% cap left the rest of the row to space-between, which pushed short summaries and controls away from the chevron on wide pages. The column's auto right margin now takes it.