mirror of
https://github.com/yattee/yattee.git
synced 2025-11-16 15:08:43 +00:00
Improve layout stability and disable unwanted animations
Added height reservation to FavoriteItemView to prevent layout shifts during content loading. Changed HomeView to use LazyVStack for better performance. Converted QueueView from LazyVStack to VStack. Disabled animations on content count changes across multiple views to prevent jarring layout transitions. Added width constraint to stream button in PlaybackSettings.
This commit is contained in:
@@ -10,9 +10,10 @@ struct ListView: View {
|
||||
ContentItemView(item: item)
|
||||
.environment(\.listingStyle, .list)
|
||||
.environment(\.noListingDividers, limit == 1)
|
||||
.transition(.opacity)
|
||||
.transition(.identity)
|
||||
}
|
||||
}
|
||||
.animation(nil, value: limitedItems.count)
|
||||
}
|
||||
|
||||
var limitedItems: [ContentItem] {
|
||||
|
||||
Reference in New Issue
Block a user