mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
fix(sheets): put a swiped sheet back when it asks before closing
A swipe past the close point paints the sheet where the finger let go and asks the owner to close it. A sheet holding unsaved input asks about discarding first and stays open, so it sat half pushed off the screen behind the question. One frame after the close, a sheet whose content is still open now glides back to its resting place. The function's size baseline rises by the seven lines this takes.
This commit is contained in:
1 parent
5533b6edf9
commit
8f3b640ab6
3 files changed
+37
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
||||
"count": 336,
|
||||
"total": 109378,
|
||||
"total": 109385,
|
||||
"entries": {
|
||||
"app/achievements/page.tsx :: AchievementsPage": 206,
|
||||
"app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 275,
|
||||
@@ -231,7 +231,7 @@
|
||||
"components/vaccinations/custom-vaccine-sheet.tsx :: CustomVaccineSheet": 246,
|
||||
"components/vaccinations/vaccination-form.tsx :: VaccinationForm": 218,
|
||||
"components/workouts/manual-workout-form.tsx :: ManualWorkoutForm": 321,
|
||||
"hooks/use-sheet-drag.ts :: createSheetDrag": 312,
|
||||
"hooks/use-sheet-drag.ts :: createSheetDrag": 319,
|
||||
"lib/activity/calendar-math.ts :: buildActivityCalendar": 204,
|
||||
"lib/ai/anthropic-client.ts :: generateCompletion": 294,
|
||||
"lib/ai/coach/cycle-snapshot.ts :: buildCycleSnapshotBlock": 202,
|
||||
|
||||
Reference in new issue
Block a user