Skip to content

Conversation

@KidScripty
Copy link

@KidScripty KidScripty commented Jan 5, 2026

No AI was used for any code generation or filling in of this form.

Type of change(s)

  • Bug fix
  • Feature / enhancement
  • Infrastructure / tooling (CI, build, deps, tests)
  • Documentation

What changed and why

Based on the feedback from @naveensingh in this Pull Request, changing the width dimension of each lap time component was "not the correct fix" so I implemented a more dynamic layout and added margins between the lap order, lap_lap_time and lap_total_time components.

Updated the layout of the stopwatch lap times components including:

lap_order, lap_lap_time and lap_total time

Adjusted layout width to not be fixed dimension (which was too small previously), the width now wraps the content. The min width is set to the previous lap_time_size dimension which provides the initial width for when the lap time is less than 1 minute.

Added margins between the boxes to ensure they do not go too close together when each lap time is greater than 1 minute.

Updated the horizontal layout chain style of the lap order component to ensure that columns are aligned when there are some laps with <1 minute times and other laps of > 1 minute.

Tests performed

Tested the previous version and reproduced the bug when changing font size to largest on Samsung Galaxy S24+

Made the changes, compiled the debug build, deployed and tested via wireless ADB.

Tested and verified the issue was fixed when font size is largest and the layout looks good.

Before & after preview

Before:
ignoreImageMinify
After:
ignoreImageMinify

Closes the following issue(s)

Checklist

  • I read the contribution guidelines.
  • I manually tested my changes on device/emulator (if applicable).
  • I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • I have self-reviewed my pull request (no typos, formatting errors, etc.).
  • All checks are passing.

Ash Hier and others added 3 commits January 4, 2026 20:01
…en lap time is longer than minutes e.g. 00:00.00 (#1)

Co-authored-by: AshBash <ash@tuxbet.com>
Adjusted layout width to wrap content so as the number of digits increases, so does the width of the box.

Set the minWidth to the lap size dimension (for initial width)

changed the layoutmethod from Packed to Spread Inside to prevent misalignment when number of digits in different laps is different. e.g when some laps are seconds long and others greater than 1 minute.

Added margins at the end of the Lap Order and Lap Time Size boxes ensuring that when times are greater than 1 minute the values aren't too close together.
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.

Stopwatch: lap times unseparated and/or truncated if font size is increased

1 participant