style(decks): inline title + scroll-transition entfernt für ruhigeren Look
- DeckListView + ExploreView: navigationBarTitleDisplayMode(.inline) ergänzt (iOS-gated), Titel sitzt jetzt klein oben — visuell angleichend an AccountView. - Scroll-transition (scaleEffect 0.92 + opacity 0.7) auf eigenen Decks und Marketplace-Explore entfernt — Tiles bleiben konstant in Größe und voller Opazität. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
aece169360
commit
8280d3d0ba
2 changed files with 6 additions and 10 deletions
|
|
@ -39,6 +39,9 @@ struct DeckListView: View {
|
|||
content
|
||||
}
|
||||
.navigationTitle("Decks")
|
||||
#if os(iOS)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
#endif
|
||||
.navigationDestination(for: DeckRoute.self) { route in
|
||||
switch route {
|
||||
case let .study(deckId, deckName):
|
||||
|
|
@ -129,11 +132,6 @@ struct DeckListView: View {
|
|||
onEdit: { path.append(DeckRoute.detail(deckId: deck.id)) }
|
||||
)
|
||||
.frame(width: 240)
|
||||
.scrollTransition(.animated) { content, phase in
|
||||
content
|
||||
.scaleEffect(phase.isIdentity ? 1 : 0.92)
|
||||
.opacity(phase.isIdentity ? 1 : 0.7)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 20)
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ struct ExploreView: View {
|
|||
content
|
||||
}
|
||||
.navigationTitle("Entdecken")
|
||||
#if os(iOS)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
#endif
|
||||
.navigationDestination(for: MarketplaceRoute.self) { route in
|
||||
switch route {
|
||||
case .browse:
|
||||
|
|
@ -115,11 +118,6 @@ struct ExploreView: View {
|
|||
NavigationLink(value: MarketplaceRoute.publicDeck(slug: item.slug)) {
|
||||
PublicDeckCard(entry: item)
|
||||
.frame(width: 240)
|
||||
.scrollTransition(.animated) { content, phase in
|
||||
content
|
||||
.scaleEffect(phase.isIdentity ? 1 : 0.92)
|
||||
.opacity(phase.isIdentity ? 1 : 0.7)
|
||||
}
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue