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 Photos | Grid Layout | Indicator Status |
| 1 | Single square | No overlay |
| 2 | 2x1 grid | No overlay |
| 3 | 2x1 grid | 2nd photo displays a +1 overlay |
| 4 | 2x2 grid | No overlay |
| 5+ | 2x2 grid | 4th 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?