We have resolved a display inconsistency within the Notes list photo grid. Previously, when a note contained exactly three photos, the grid displayed the first two images but omitted the "+1" indicator for the hidden third image.

The Fix

We updated the grid logic in the PersonDetail component to ensure the "+n" overlay badge renders consistently across all layout branches. By applying the existing overlay markup to the two column grid, the system now dynamically calculates any remaining hidden photos and applies the badge to the final visible image.

Expected Behavior

The photo grid will now accurately reflect the total number of attachments across all configurations:

Total PhotosGrid LayoutIndicator Status
1Single squareNo overlay
22x1 gridNo overlay
32x1 grid2nd photo displays a +1 overlay
42x2 gridNo overlay
5+2x2 grid4th photo displays a +n overlay

Export to Sheets

Technical Implementation

The rendering loop for the two and three photo branch now correctly identifies the final visible photo in the array. If the calculated remainingCount is greater than zero, the component mounts the absolute positioned overlay badge. This mirrors the behavior and styling already established for the four plus photo layout, ensuring a unified codebase and user experience without altering the single photo or four plus photo branches.

Would you like me to draft a standardized pull request description or ticket summary for this fix?