diff --git a/res/css/voice-broadcast/atoms/_VoiceBroadcastControl.pcss b/res/css/voice-broadcast/atoms/_VoiceBroadcastControl.pcss index ff892767e4..efe4b97445 100644 --- a/res/css/voice-broadcast/atoms/_VoiceBroadcastControl.pcss +++ b/res/css/voice-broadcast/atoms/_VoiceBroadcastControl.pcss @@ -28,3 +28,8 @@ limitations under the License. .mx_VoiceBroadcastControl-recording { color: $alert; } + +.mx_VoiceBroadcastControl-play .mx_Icon { + left: 1px; + position: relative; +} diff --git a/src/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody.tsx b/src/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody.tsx index 9999603c08..6c16223388 100644 --- a/src/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody.tsx +++ b/src/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody.tsx @@ -62,14 +62,17 @@ export const VoiceBroadcastPlaybackBody: React.FC>; let controlLabel: string; + let className = ""; switch (playbackState) { case VoiceBroadcastPlaybackState.Stopped: controlIcon = PlayIcon; + className = "mx_VoiceBroadcastControl-play"; controlLabel = _t("play voice broadcast"); break; case VoiceBroadcastPlaybackState.Paused: controlIcon = PlayIcon; + className = "mx_VoiceBroadcastControl-play"; controlLabel = _t("resume voice broadcast"); break; case VoiceBroadcastPlaybackState.Playing: @@ -79,6 +82,7 @@ export const VoiceBroadcastPlaybackBody: React.FC
@@ -460,7 +460,7 @@ exports[`VoiceBroadcastPlaybackBody when rendering a stopped broadcast should re >