Skip to content

Commit 9480e23

Browse files
authored
Merge pull request #1426 from yougotwill/fix/ses-3230/audio-message-duration
fix: audio messages should show duration and not current time
2 parents a30a0e8 + b84ae1d commit 9480e23

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ts/components/conversation/H5AudioPlayer.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ export const StyledH5AudioPlayer = styled(H5AudioPlayer)<{ dropShadow?: boolean
4848
outline: none;
4949
}
5050
51+
.rhap_current-time,
52+
.rhap_current-left-time,
5153
.rhap_total-time {
52-
display: none;
53-
}
54-
55-
.rhap_current-time {
5654
margin: 0 5px 0 4px;
5755
flex-shrink: 0;
5856
}
@@ -267,6 +265,7 @@ export const AudioPlayerWithEncryptedFile = (props: {
267265
/>
268266
</StyledSpeedButton>,
269267
]}
268+
customProgressBarSection={[RHAP_UI.CURRENT_LEFT_TIME, RHAP_UI.PROGRESS_BAR]}
270269
customIcons={{
271270
play: <SessionIcon iconType="play" iconSize="small" iconColor={iconColor} />,
272271
pause: <SessionIcon iconType="pause" iconSize="small" iconColor={iconColor} />,

0 commit comments

Comments
 (0)