mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix the setting button's layout and animation on liquid glass
This commit is contained in:
committed by
Stefan Ceriu
parent
0360db7924
commit
5577acac19
@@ -88,11 +88,7 @@ enum UserAvatarSizeOnScreen {
|
||||
var value: CGFloat {
|
||||
switch self {
|
||||
case .chats, .spaces:
|
||||
if #available(iOS 26, *) {
|
||||
return 40
|
||||
} else {
|
||||
return 32
|
||||
}
|
||||
return 32
|
||||
case .timeline:
|
||||
return 32
|
||||
case .readReceipt:
|
||||
|
||||
@@ -36,8 +36,8 @@ struct HomeScreen: View {
|
||||
private var toolbar: some ToolbarContent {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
settingsButton
|
||||
.buttonStyle(.borderless)
|
||||
}
|
||||
.backportSharedBackgroundVisibility(.hidden)
|
||||
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
if #available(iOS 26, *) {
|
||||
|
||||
@@ -108,9 +108,9 @@ struct SpacesScreen: View {
|
||||
.accessibilityIdentifier(A11yIdentifiers.homeScreen.userAvatar)
|
||||
.compositingGroup()
|
||||
}
|
||||
.buttonStyle(.borderless)
|
||||
.accessibilityLabel(L10n.commonSettings)
|
||||
}
|
||||
.backportSharedBackgroundVisibility(.hidden)
|
||||
|
||||
ToolbarItem(placement: .principal) {
|
||||
// Hides the navigationTitle (which is set for the navigation stack label).
|
||||
|
||||
Reference in New Issue
Block a user