Skip to content

[Bug]: Mobile PR file Viewed checkbox is too small to tap #39948

Closed

Description

@Ernest0-Production

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Open a pull request on iOS or Android.
  2. Open the Code / files review (native review diff).
  3. Try to tap the Viewed checkbox on a file header.

Expected behavior

The Viewed control should have a tap target large enough to hit reliably, similar to the web/desktop file header after #37033 (the label/hit area fills the header; the visible checkbox does not need to grow).

Actual behavior

The native review-diff file header draws and hit-tests the Viewed checkbox as a 20×20 pt/dp rect on the trailing edge. The file header itself is ~54 pt on iOS and ~44 dp on Android, so taps that miss the glyph expand/collapse the file instead.

Hit testing is exact-rect, no extra slop:

  • iOS fileHeaderInteractiveRects in apps/mobile/modules/t3-review-diff/ios/T3ReviewDiffView.swift (CGRect 20×20); handleFileHeaderTap uses checkbox.contains(point)
  • Android fileHeaderCheckboxRect in apps/mobile/modules/t3-review-diff/android/src/main/java/expo/modules/t3reviewdiff/ReviewDiffCanvasDrawing.kt (20 dp); onSingleTapUp uses contains(event.x, event.y)

Web counterpart already landed: #37033 / fix(web): expand viewed checkbox click area. No open issue or PR covers the mobile native checkbox.

The Files list row (PullRequestFiles.tsx) only shows a viewed mark; it is not the toggle. This report is the native file-header checkbox.

Impact

Minor bug or occasional failure

Version or commit

main @ f2ec853

Environment

T3 Code mobile (iOS and Android), pull request Code review.

Logs or stack traces

Workaround

Tap the exact 20×20 glyph. Missing it toggles the file fold instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions