From 8a885723d91ffb03fdb7e8e7876eec381dc6db1a Mon Sep 17 00:00:00 2001 From: tisachi Date: Sun, 13 Sep 2026 14:26:29 +0200 Subject: [PATCH] App: tlumienie bouncingu iOS - overscroll-behavior na html i contain w wewnetrznych scrollerach (topbar/bottom bar nie odbija sie od krawedzi) --- app/src/components/ui/content.tsx | 2 +- app/src/components/ui/dialog.tsx | 2 +- app/src/pages/messages/MessageThread.tsx | 2 +- app/src/pages/plans/plan-editor/ExerciseEditor.tsx | 2 +- app/src/pages/plans/plan-editor/ExercisePicker.tsx | 2 +- app/src/styles.css | 3 +++ 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/src/components/ui/content.tsx b/app/src/components/ui/content.tsx index 289c6b3..353245a 100644 --- a/app/src/components/ui/content.tsx +++ b/app/src/components/ui/content.tsx @@ -294,7 +294,7 @@ export function Tabs({
{tabs.map((t) => (
{/* relative: sr-only (absolute) w nagłówku nie rozlewa dokumentu poza scroll container */} -
+
diff --git a/app/src/pages/plans/plan-editor/ExercisePicker.tsx b/app/src/pages/plans/plan-editor/ExercisePicker.tsx index 7e84377..076b669 100644 --- a/app/src/pages/plans/plan-editor/ExercisePicker.tsx +++ b/app/src/pages/plans/plan-editor/ExercisePicker.tsx @@ -169,7 +169,7 @@ export function ExercisePicker({ role="listbox" aria-label="Ćwiczenia" aria-activedescendant={flat[active] ? `ex-opt-${flat[active].id}` : undefined} - className="max-h-72 overflow-y-auto -mx-1 px-1" + className="max-h-72 overflow-y-auto overscroll-contain -mx-1 px-1" > {flat.length === 0 && (

diff --git a/app/src/styles.css b/app/src/styles.css index d4bc232..9fc96fe 100644 --- a/app/src/styles.css +++ b/app/src/styles.css @@ -197,6 +197,9 @@ @layer base { html { background-color: var(--bg); + /* iOS: wyłącza „gumkę" (rubber-band) dokumentu — sticky topbar i fixed bottom bar + nie odbijają się od krawędzi ekranu przy przeciąganiu poza koniec strony */ + overscroll-behavior-y: none; } body {