Update Voice Broadcast recorder cell by adjusting some padding values

This commit is contained in:
Philippe Loriaux
2022-12-15 17:01:52 +01:00
parent a908802360
commit 1f6cd4ca4f
@@ -42,9 +42,9 @@ struct VoiceBroadcastRecorderView: View {
VStack(alignment: .center) {
HStack(alignment: .top) {
AvatarImage(avatarData: viewModel.viewState.details.avatarData, size: .xSmall)
AvatarImage(avatarData: viewModel.viewState.details.avatarData, size: .small)
VStack(alignment: .leading, spacing: 0) {
VStack(alignment: .leading, spacing: 3) {
Text(details.avatarData.displayName ?? details.avatarData.matrixItemId)
.font(theme.fonts.bodySB)
.foregroundColor(theme.colors.primaryContent)
@@ -77,7 +77,7 @@ struct VoiceBroadcastRecorderView: View {
.accessibilityIdentifier("liveButton")
}
HStack(alignment: .top, spacing: 16.0) {
HStack(alignment: .top, spacing: 34.0) {
Button {
switch viewModel.viewState.recordingState {
case .started, .resumed:
@@ -117,9 +117,9 @@ struct VoiceBroadcastRecorderView: View {
.disabled(viewModel.viewState.recordingState == .stopped)
.mask(Color.black.opacity(viewModel.viewState.recordingState == .stopped ? 0.3 : 1.0))
}
.padding(EdgeInsets(top: 10.0, leading: 0.0, bottom: 10.0, trailing: 0.0))
}
.padding([.horizontal, .top], 2.0)
.padding([.bottom])
.padding(EdgeInsets(top: 12.0, leading: 4.0, bottom: 12.0, trailing: 4.0))
}
}