Skip to content

fix: keep comparison icons beside logged values in routine table (#1264)#1275

Open
gitcommit90 wants to merge 1 commit into
wger-project:masterfrom
gitcommit90:fix/issue-1264-table-log-icons
Open

fix: keep comparison icons beside logged values in routine table (#1264)#1275
gitcommit90 wants to merge 1 commit into
wger-project:masterfrom
gitcommit90:fix/issue-1264-table-log-icons

Conversation

@gitcommit90

Copy link
Copy Markdown

Summary

Routine table log comparison icons can wrap away from their numeric values when cells are narrow.

Changes

  • Add a small helper to render logged value + comparison icon as a centered horizontal Stack
  • Apply it to reps, weight, rest time, and RIR log rows
  • Keep the value/icon pair non-wrapping with whiteSpace: 'nowrap'

Tests

LANG=de_de npx vitest run src/components/Routines/screens/Detail/RoutineDetailsTable.test.tsx

Fixes #1264

Wrap logged metrics and comparison icons in a nowrap flex row so icons
stay aligned with their values in the table view.

Fixes wger-project#1264
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.

Fix routine table view log icons

1 participant