Skip to content

Conversation

@napster235
Copy link
Contributor

Resolves #4672

Description

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manually tested

Screenshots

Barcode Items
Screenshot 2025-08-13 at 10 16 10
Donations
Screenshot 2025-08-13 at 10 15 51
Inventory Transfers
Screenshot 2025-08-13 at 10 15 32
Manufacturers
Screenshot 2025-08-13 at 10 14 59

@cielf
Copy link
Collaborator

cielf commented Aug 13, 2025

@napster235 I changed "resolves" to "partial" above, as there may be (i think are) more alignment issues than just the numeric columns. ("Resolves" would cause the workflow to close the issue when this is merged.)

@napster235
Copy link
Contributor Author

napster235 commented Aug 13, 2025

Sure, no prob @cielf. I searched in other places for alignment issues and I couldn't find any. Maybe I missed them. But all looked ok to me. If you know a specific place do let me know. Thanks

@cielf
Copy link
Collaborator

cielf commented Aug 13, 2025

Changing it back to resolves -- I think this solves the "does the header align with the content" problem. We definitely have some inconsistencies between different pages, but those can be a different issue.

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@napster235 Thank you for this!

-- One minor thing around barcodes to adjust.

There are other alignment-related issues we have, but I'm going to take those to a different issue -- this will take care of all the alignment between header and content issues.

<td><%= barcode_item_row.quantity %></td>
<td><%= barcode_item_row.value %></td>
<td class="numeric"><%= barcode_item_row.quantity %></td>
<td class="numeric"><%= barcode_item_row.value %></td>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm.. Barcodes are a weird case. The barcodes are strings made of digits, but they aren't amounts.

They should be left-justified. For clarity, The quantities should be right justified, but the actual barcodes left-justified.

<tr>
<th>Item Type</th>
<th class="text-right">Quantity in the Box</th>
<th class="text-right">Barcode</th>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and hence the header for barcode should be left-justified as well.

@napster235
Copy link
Contributor Author

@cielf I made the changes. This is how the barcode table looks now.
Screenshot 2025-08-14 at 09 07 26

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cielf cielf merged commit dc56656 into rubyforgood:main Aug 14, 2025
11 checks passed
@github-actions
Copy link
Contributor

@napster235: Your PR 4672: Align numeric values to the right is part of today's Human Essentials production release: 2025.08.17.
Thank you very much for your contribution!

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.

Header Alignment -- on all things

2 participants