Skip to content

Conversation

@thisconnect
Copy link
Collaborator

@thisconnect thisconnect commented Oct 16, 2025

Updated the frontend to be responsive on Android. Ideally this PR would have no visual difference and just scales up if settings changed. But some CSS was not possible to make reponsive and stay 100% the same, that is for example the Guide where we used "em" sizes. The balance header that is used in different view such as account-overview and send now looks the same on both view before padding/spacing was different. Also we used many different font-sizes, some not intentional. This PR refactored font-size CSS variables and slightly reduced the number of different font-sizes, causing minor visual layout changes.

  • the font-size and UI scales up if Android system settings "Font size" is increased
  • Amounts that are too large to display should shorten i.e 0.123... BTC (also without increased font-size)
  • shorten amounts also improve the all-accounts mobile view, especially with large amounts like for eth
  • Balance component should now visually look the same on different views
  • in scaled up mode some layout that before was left/right now can break onto 2 different lines if there is not enough space

The scaled up UI on Android looks currently so broken that any change is an improvement. But each change could also introduce a visual CSS regression. So it would help if the focus of the testing is that nothing broken in "normal" mode.

Before asking for reviews, here is a check list of the most common things you might need to consider:

  • updating the Changelog
  • checking if your changes affect other coins or tokens in unintended ways
  • testing on multiple environments (Qt, Android, ...)
  • having an AI review your changes

@thisconnect thisconnect force-pushed the frontend-responsive-fontsize-android branch from 46039ca to e8ddfec Compare October 16, 2025 12:29
@thisconnect
Copy link
Collaborator Author

thisconnect commented Oct 16, 2025

Will replace #2699

@thisconnect thisconnect force-pushed the frontend-responsive-fontsize-android branch 4 times, most recently from c2d1d9e to d5518bc Compare October 23, 2025 10:02
@thisconnect thisconnect force-pushed the frontend-responsive-fontsize-android branch 5 times, most recently from fab6678 to 044e95e Compare October 23, 2025 15:27
@thisconnect thisconnect force-pushed the frontend-responsive-fontsize-android branch 2 times, most recently from 4ca695a to 2f600cb Compare October 30, 2025 11:56
@thisconnect thisconnect force-pushed the frontend-responsive-fontsize-android branch 9 times, most recently from e2f6c6d to d47a4e5 Compare November 10, 2025 17:43
@thisconnect thisconnect force-pushed the frontend-responsive-fontsize-android branch 5 times, most recently from f6df564 to bee0d54 Compare November 11, 2025 14:52
On maximum font-size settings some app views are broken caused by
text that is too large. The default size is set on 62.% but can
increase up to 150% (on Android 14).

Updated font-size CSS varibables with defined maximum values.
Bottom-menu should not grow beyond certain size in responsive mode
for example if Android Font size is set to max.

This can be simulated by changing the font-size on the root HTML
element to 150%.
Toggles in responsive mode looked broken if Android Font size is
increased.

This can be simulated by changing the font-size on the root HTML
element to 150%.
- changed button border-width to be reponsive and scale with the ui
- fixed send/recieve button, should scale
- fixed responsive button height
Improved various form elements so they look ok in scaled up mode.

Can be tested by setting font-size: 150%; on the html element.
Fixed a bug caused by empy paragraph element, which increased
settings item height unnecessarily.
Changed the layout slightly on small screen as there was custom
font-size defined, introduced in: bfc3fed
Sidebar can appear on Android tablets, fixed some styles related to
the sidebar component.
Visually changed search input height also in default mode, so it
uses the same height as all other input fields.
Updated account-overview styling so it aligns with changes from the
last commit (send). Changed header styling, so that the title and
balance positioning match between account and send view.
The copy component should grow to improve accessibility.

Also removed utility classes in favor of already exsting container
class.
Amount component has text-overflow: ellipsis styling which does
not work.

Fixed text overflow should be shortened by an ellipsis.
Before this feature, larger font-size settings on Android could
break the UI in various places in the app.

This feature supports larger font-size in various components, by
eitehr shorteining with dotdot..., breaking onto newlines and
ensuring that text, buttons or form elements consistently scale.
@thisconnect thisconnect force-pushed the frontend-responsive-fontsize-android branch from c654fab to 06d2c23 Compare November 27, 2025 10:08
@smokyisthatyou
Copy link
Contributor

@thisconnect tested on macOS, Win11 and GrapheneOS, LGTM.

Will code review soon 🙏

@Beerosagos
Copy link
Collaborator

@Beerosagos please review the frontend/android commit 🙏

LGTM 👍

@thisconnect thisconnect merged commit c52fe0e into BitBoxSwiss:master Nov 27, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants