Skip to content

fix(ios): use the space around system bars; fix cursor knob gap (#3162) - #3163

Merged
bajrangCoder merged 4 commits into
mainfrom
fix/ios-safe-area-and-cursor-knob
Dec 4, 2026
Merged

bajrangCoder merged 4 commits into
mainfrom
fix/ios-safe-area-and-cursor-knob

Conversation

@deadlyjack

Copy link
Copy Markdown
Member

iOS

  • Let the web view extend under the home indicator and beside the Dynamic Island; bottom banners stay above the indicator.
  • Add viewport-fit=cover to index.html for iOS builds and pad headers, tabs, editor, pages, panels and footers by the side safe-area insets so content clears the camera cutout in landscape.

Cursor controller

Settings

  • Add a disabled state for settings items and disable the cursor controller settings while quick tools are off.
  • Honour [hidden] on detail settings pages and keep search results in sync with disabled changes.

iOS
- Let the web view extend under the home indicator and beside the
  Dynamic Island; bottom banners stay above the indicator.
- Add viewport-fit=cover to index.html for iOS builds and pad headers,
  tabs, editor, pages, panels and footers by the side safe-area insets
  so content clears the camera cutout in landscape.

Cursor controller
- Append the knob on first placement: unplaced, it hung below #root and
  made it scroll, lifting the quick tools footer (#3162).
- Centre it on the rows, and on the top edge in compact mode.

Settings
- Add a disabled state for settings items and disable the cursor
  controller settings while quick tools are off.
- Honour [hidden] on detail settings pages and keep search results in
  sync with disabled changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The latest change appears safe to merge and fixes menu placement on older Android WebViews.

Summary

The PR expands the iOS editor around system bars, keeps banners above the home indicator, and adds side spacing around camera cutouts. It also fixes cursor knob placement and adds disabled settings.

  • The iOS editor fills the screen while its content clears system bars and cutouts.
  • Touch tracking follows the web view when it moves between windows.
  • The cursor knob appears on the Quick Tools rows without adding page scroll.
  • Settings pages disable unavailable cursor options and keep search results in sync.

Reviews (4) · Last reviewed commit: "fix(contextmenu): apply safe-area offset..." · Reviewed by Greptile

WebTouchEnd stayed in .possible after a touch ended. WebKit links its
deferring gesture recognizers to every recognizer on the web view, and
UIKit resets them only once all have finished, so native scrolling and
synthetic clicks stopped after the first gesture. Fail the recognizer
when its touches end so the whole group resets.

Tests: open an editor before measuring the safe-area padding, skip when
the scene cannot rotate (resizable iPad windows), and drop assertions
that do not hold on iPad.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deadlyjack

Copy link
Copy Markdown
Member Author

@greptile

- Watch touch ends from the web view's window so the second tap of a
  double-tap is not missed
- Keep the selection menu and tooltips out of the landscape cutouts;
  dock the sidebar based on the width inside the safe area
- Floor context menu edge offsets at the safe area instead of adding it
- Limit the compact cursor knob's hit area to the Quick Tools row
- Lay out the top inset again once the status bar settles; report the
  keyboard height without the home indicator
- Search clones follow item visibility as well as disabled state
- Stop cleanInstallState falling through into rememberFiles
- Make the layout, ads and safe-area tests independent of keyboard state
  and the starting orientation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deadlyjack

Copy link
Copy Markdown
Member Author

@greptile

Comment thread src/components/contextmenu/index.js Resolved
Older Android WebViews drop a left/right that uses max(), which left
menus without a position. Only iOS has side safe areas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deadlyjack

Copy link
Copy Markdown
Member Author

@greptile

@bajrangCoder
bajrangCoder added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 9414ccb Dec 4, 2026
14 of 15 checks passed
@bajrangCoder
bajrangCoder deleted the fix/ios-safe-area-and-cursor-knob branch December 4, 2026 16:59
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants