Added a chevron to collapsed call buttons in the DM (#5755)

* Added a chevron to collapsed call buttons in the DM

This makes the context menu more intuitive and easy to find. Inspired by the collapsed state of call buttons in Whatsapp that I saw recently

* Shortening video/voice call button strings

Currently the text is unnecessarily long, I have reduced to button text

# Conflicts:
#	ElementX/Sources/Generated/Strings+Untranslated.swift

* Move translations to localazy

---------

Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com>
This commit is contained in:
amshak
2026-06-22 11:23:37 +01:00
committed by GitHub
parent 9672c73564
commit 9f92e181b0
5 changed files with 37 additions and 6 deletions
@@ -31,16 +31,19 @@ struct RoomCallControlsToolbar: ToolbarContent {
Button {
onCallTap(true)
} label: {
Label(L10n.a11yStartVoiceCall, icon: \.voiceCallSolid)
Label(L10n.actionVoiceCall, icon: \.voiceCallSolid)
}
Button {
onCallTap(false)
} label: {
Label(L10n.a11yStartVideoCall, icon: \.videoCallSolid)
Label(L10n.actionVideoCall, icon: \.videoCallSolid)
}
} label: {
CompoundIcon(\.voiceCallSolid)
HStack(spacing: 2) {
CompoundIcon(\.voiceCallSolid)
CompoundIcon(\.chevronDown, size: .xSmall, relativeTo: .compound.bodyLG)
}
}
.accessibilityLabel(L10n.a11yStartCall)
.disabled(!viewState.canJoinCall)