Skip to content

Conversation

JPKribs
Copy link
Member

@JPKribs JPKribs commented Jul 13, 2025

Summary

Drops usages of UIDevice.main.bounds in favor of GeometryReader. Additionally, changes the trailing 200 padding between the Overview and PlayButton and with a more dynamic 5% of total screen size. This reduces the effective spacing on iPad when vertical and helps ensure that the spacing isn't too large.

While working on this, I found that the Attributes almost always used 2 lines on the iPad Mini. Additionally, the Genre text would often get pushed to 2 lines on iPad Mini. I changed the Genre text & others to always be on a single line to avoid issues. Altogether, I wanted to cleanup how the current version of this looked on the iPad Mini. This is how this looked prior to this PR:

Simulator Screenshot - iPad mini (A17 Pro) - 2025-07-13 at 03 01 27

I've included various versions of how this looks now in this PR on both the iPad Mini (7.9") and iPad Pro (13") below for comparison.

Outstanding Questions

  1. I moved this calculation from UIDevice.main.bounds to GeometryReader. In my research, this looked like the correct move. Please let me know if this is not.
  2. In my research, I also found @Environment(\.horizontalSizeClass) and @Environment(\.verticalSizeClass). Right now, even the iPad Mini positioned vertically returns .regular so there's no real value I saw for this PR to use this. However, if we start allowing split screen for iPad, @Environment(\.horizontalSizeClass) can start to be used and will actually return .compact when split screen or in the side bar thing. Should I include this in this PR as a future looking item or should I hold off since there isn't a good way to test this?

Screenshots

iPad Mini 7.9"- Vertical Simulator Screenshot - iPad mini (A17 Pro) - 2025-07-13 at 02 53 46
iPad Mini 7.9" - Horizontal Simulator Screenshot - iPad mini (A17 Pro) - 2025-07-13 at 02 53 50
iPad Pro 13" - Vertical Simulator Screenshot - iPad Pro 13-inch (M4) - 2025-07-13 at 02 54 47
iPad Pro 13" - Horizontal Simulator Screenshot - iPad Pro 13-inch (M4) - 2025-07-13 at 02 55 00

@JPKribs JPKribs added enhancement New feature or request developer Improves or alters the developer experience iOS Specific to only iOS or iPadOS labels Jul 13, 2025
@JPKribs JPKribs requested a review from LePips July 13, 2025 09:11
Copy link
Member

@LePips LePips left a comment

Choose a reason for hiding this comment

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

@Environment(.horizontalSizeClass) ...@Environment(.verticalSizeClass)

We will eventually use the size classes more, like for determining the poster column counts.

@JPKribs JPKribs requested a review from LePips July 17, 2025 19:31
@JPKribs
Copy link
Member Author

JPKribs commented Jul 18, 2025

Last change while working on #1638.

I found that 0.6 for iPad was blurring too much. I changed this to 0.5. See below as before and after. Let me know if this is unwanted and I can revert this:

Screenshot 2025-07-17 at 21 10 25

@LePips LePips merged commit 349043b into jellyfin:main Jul 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer Improves or alters the developer experience enhancement New feature or request iOS Specific to only iOS or iPadOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants