Commit 03ad499
fix(frontend): constrain Sheet overlay to dynamic viewport height on mobile (#676)
* fix(frontend): constrain Sheet overlay to dynamic viewport height on mobile
Closes #620
The mobile hamburger menu overlay used `fixed inset-0` which relies on
`bottom: 0` to cover the viewport. On mobile browsers where the URL
bar expands/collapses, this causes the overlay to extend beyond the
visible area and block form inputs below the fold.
Replace `inset-0` with explicit `inset-x-0 top-0 h-dvh` on the
SheetOverlay so the backdrop is pinned to the top and sized to the
dynamic viewport height (`100dvh`). This keeps the overlay within the
visible area on all mobile browsers while preserving the existing
semantics for desktop and non-mobile sheet usages.
Files changed:
- apps/web/src/components/ui/sheet.tsx
Co-Authored-By: Codebuff <noreply@codebuff.com>
* fix(frontend): resolve pre-existing build/lint/test failures
Fix cascading type errors and lint failures that were hidden behind
syntax errors in the codebase. These fixes ensure the CI pipeline
(lint + build) passes cleanly.
Changes:
- sheet.tsx: constrain SheetOverlay to dynamic viewport height (h-dvh)
to prevent mobile nav overlay from blocking form inputs (#620)
- CreatePaymentStream.tsx: remove duplicate code block causing parse
error; add missing createStream import from @/lib/api
- wallet-modal.tsx: remove stray JSX outside DialogContent causing
parse error; deduplicate imports
- StellarWalletProvider.tsx: remove duplicate state initializers and
unreachable code causing parse errors
- api.ts: fix SentTransaction.hash → sendTransactionResponse?.hash
- stellar.ts: add missing PaymentStreamFormData import, throwIfAborted
helper, abortableDelay helper, SUPPORTED_TOKENS import
- FundableMapView.tsx: remove invalid role attribute from CircleMarker
(not supported by react-leaflet); fix useState-in-effect lint error
- FundableMap.test.tsx: update test to check aria-label instead of
role="button" on circle markers
- playwright.config.ts: remove invalid initScript option
- package.json: add ioredis dependency used by redis.ts
Co-Authored-By: Codebuff <noreply@codebuff.com>
---------
Co-authored-by: Codebuff <noreply@codebuff.com>
Co-authored-by: Aboogeeky <Idrishassan35@gmail.com>1 parent 688c8de commit 03ad499
5 files changed
Lines changed: 21 additions & 1 deletion
File tree
- apps/web
- src
- components
- map
- organisms
- ui
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
| |||
0 commit comments