mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix a bug where the pinned items banner could overlay the composer. (#3441)
This commit is contained in:
parent
f26159a295
commit
2b82959430
@ -28,6 +28,14 @@ struct RoomScreen: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
timeline
|
timeline
|
||||||
.background(Color.compound.bgCanvasDefault.ignoresSafeArea())
|
.background(Color.compound.bgCanvasDefault.ignoresSafeArea())
|
||||||
|
.overlay(alignment: .top) {
|
||||||
|
Group {
|
||||||
|
if roomContext.viewState.shouldShowPinnedEventsBanner {
|
||||||
|
pinnedItemsBanner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.animation(.elementDefault, value: roomContext.viewState.shouldShowPinnedEventsBanner)
|
||||||
|
}
|
||||||
.safeAreaInset(edge: .bottom, spacing: 0) {
|
.safeAreaInset(edge: .bottom, spacing: 0) {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
RoomScreenFooterView(details: roomContext.viewState.footerDetails,
|
RoomScreenFooterView(details: roomContext.viewState.footerDetails,
|
||||||
@ -52,14 +60,6 @@ struct RoomScreen: View {
|
|||||||
.environment(\.shouldAutomaticallyLoadImages, !timelineContext.viewState.hideTimelineMedia)
|
.environment(\.shouldAutomaticallyLoadImages, !timelineContext.viewState.hideTimelineMedia)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.overlay(alignment: .top) {
|
|
||||||
Group {
|
|
||||||
if roomContext.viewState.shouldShowPinnedEventsBanner {
|
|
||||||
pinnedItemsBanner
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.animation(.elementDefault, value: roomContext.viewState.shouldShowPinnedEventsBanner)
|
|
||||||
}
|
|
||||||
.navigationTitle(L10n.screenRoomTitle) // Hidden but used for back button text.
|
.navigationTitle(L10n.screenRoomTitle) // Hidden but used for back button text.
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.navigationBarHidden(isNavigationBarHidden)
|
.navigationBarHidden(isNavigationBarHidden)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user