Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
4.87k stars 460 forks source link

Clip StatusRowView to prevent media from hiding swipe action buttons #2107

Closed asendra closed 1 week ago

asendra commented 2 weeks ago

Description

When a status contains multiple images, they overlap with the swipe action buttons, hiding them.

Fixes #2106

This PR clips the StatusRowView and switches the horizontal inset for horizontal padding.

At first, I only added the clipping.

Unfortunately, due to the list inset, this made the content not go edge to edge, defeating what I guess was the desired effect of the feature. (See alternative solution for the result)

This is the reason why I also had to replace the list horizontal inset for the horizontal content padding.

Before

before

After

fix

Alternative solution

alternative