Skip to content

Commit fde944d

Browse files
committed
fix: audio messages should show duration and not current time
1 parent 0d3091e commit fde944d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ts/components/conversation/H5AudioPlayer.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ export const StyledH5AudioPlayer = styled(H5AudioPlayer)<{ dropShadow?: boolean
4848
outline: none;
4949
}
5050
51+
.rhap_current-time,
5152
.rhap_total-time {
52-
display: none;
53-
}
54-
55-
.rhap_current-time {
5653
margin: 0 5px 0 4px;
5754
flex-shrink: 0;
5855
}
@@ -267,6 +264,7 @@ export const AudioPlayerWithEncryptedFile = (props: {
267264
/>
268265
</StyledSpeedButton>,
269266
]}
267+
customProgressBarSection={[RHAP_UI.DURATION, RHAP_UI.PROGRESS_BAR]}
270268
customIcons={{
271269
play: <SessionIcon iconType="play" iconSize="small" iconColor={iconColor} />,
272270
pause: <SessionIcon iconType="pause" iconSize="small" iconColor={iconColor} />,

0 commit comments

Comments
 (0)