Skip to content

Commit

Permalink
Merge pull request #7175 from vector-im/phlpro/voice_broadcast_record…
Browse files Browse the repository at this point in the history
…er_cell_paddings

Voice Broadcast: Update recorder cell layout
  • Loading branch information
Phl-Pro authored Dec 16, 2022
2 parents f61d29f + fd747a2 commit e388d70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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))
}
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-7175.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Labs: VoiceBroadcast: Update Voice Broadcast recorder cell by adjusting some padding values

0 comments on commit e388d70

Please sign in to comment.