Skip to content

usdt deposit detail buttons truncate at accessibility text sizes #962

Closed

Description

@jvsena42

Found while driving usdt-bridge-support.xml for #948 at ab313b1, in code that PR did not touch.

Observed

At AX-XL Dynamic Type, the paired small buttons in deposit details truncate: "Reques…", "Hide de…", "Contact…", "Copy Det…".

Expected

Button labels stay readable at accessibility text sizes.

Steps to reproduce

  1. Set Settings › Accessibility › Larger Text to AX-XL.
  2. Open Cross-Network Deposits, open a held deposit, tap Details.

Root cause

  • Two CustomButton(size: .small, shouldExpand: true) sit side by side in an HStack: UsdtDepositHistoryView.swift:160-169 and UsdtSupportActions.swift:11-22.
  • The small button has a fixed 40 pt height and a single line of text (PrimaryButtonView.swift:27-35, Button.swift:50).

Suggested fix

Stack the buttons vertically at accessibility sizes, as UsdtIntroSheet.swift:49-51 already does (dynamicTypeSize.isAccessibilitySize ? VStackLayout : HStackLayout).

Android twin: synonymdev/bitkit-android#1517

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions