Skip to content

Conversation

@kevinherdez
Copy link
Collaborator

Added the captions back to the avalanche forecast. This was a bug before adding the new media carousel, but that new code accidentally removed it entirely. This brings it back

Simulator Screenshot - iPhone 17 Pro - 2026-01-21 at 10 06 51

thumbnailAspectRatio = 1.3,
mediaItems,
displayCaptions = true,
displayCaptions = false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why make the default false? is there a case in the media carousel when we dont show captions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll update the name so it's more clear. This is actually controlling if the captions are being displayed in the thumbnail list, not in the modal.

The use case for the AvalancheProblemCard is actually the only place where we show the caption with the thumbnail which is why I switched it to false. A potentially better fix is to maybe create a new MediaPreview component that would specifically handle this instead of making the ThumbnailList do it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The main reason being is that in the AvalancheProblemCard we're forcing the array that's passed into contain only 1 item, it's the only place where the captions are inline before opening up the modal to see the full image, and it's the only place where the thumbnail is a different size. A new component could make it more clear what we're trying to show, but this is the quicker fix

Copy link
Collaborator

Choose a reason for hiding this comment

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

make an issue for making a new component in the future, but the current quick fix makes sense (please add a comment with this context above the false default)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay sounds good!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kevinherdez kevinherdez enabled auto-merge January 22, 2026 00:55
@kevinherdez kevinherdez added this pull request to the merge queue Jan 22, 2026
Merged via the queue into NWACus:main with commit ecf1750 Jan 22, 2026
5 checks passed
@kevinherdez kevinherdez deleted the kevinherdez/fixAvalancheMediaCaption branch January 22, 2026 00:57
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.

2 participants