Files
Daniel D’Aquino 63ff2b6f9e ui: Stabilize ImageCarousel height when swiping between images
This commit enhances the ImageCarousel component to maintain a consistent
height when navigating between images of different aspect ratios. The
changes prevent the UI from "jumping" during carousel navigation, which
improves the overall user experience.

Key improvements:
- Added `first_image_fill` property to store dimensions of the first image
- Modified height calculation to prioritize the first image's dimensions
- Refactored image fill calculation into a reusable `compute_item_fill` method
- Added proper view clipping to prevent content overflow
- Simplified filling behavior for more predictable layout

These changes provide a smoother, more stable carousel experience by
maintaining consistent dimensions throughout image navigation.

Changelog-Changed: Improved the image sizing behavior on the image carousel for a smoother experience
Closes: https://github.com/damus-io/damus/issues/2724
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
2025-07-09 10:26:32 -07:00
..
2025-01-12 15:20:06 +09:00
2024-04-25 09:30:27 -04:00
2024-10-01 17:32:56 -06:00
2024-06-21 12:00:44 -07:00
2023-05-08 11:01:04 -07:00
2023-05-08 11:01:04 -07:00
2024-06-19 12:33:15 -07:00
2023-09-21 09:10:06 -04:00