Skip to content

Commit

Permalink
Adjust play button size
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Nov 20, 2023
1 parent e581134 commit 76046f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/ProjectUsers/ProjectSpeakers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function SpeakerListItem(props: ProjSpeakerProps): ReactElement {
deleteAudio={() => removeConsent(id, projectId)}
fileName={consent.fileName}
pronunciationUrl={getAudioUrl(id, consent.fileName)}
size={"small"}
warningTextId="projectSettings.speaker.consent.warning"
/>
</ListItemIcon>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Pronunciations/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface PlayerProps {
fileName: string;
onClick?: () => void;
pronunciationUrl: string;
size?: "large" | "medium" | "small";
warningTextId?: string;
}

Expand Down Expand Up @@ -106,7 +107,7 @@ export default function AudioPlayer(props: PlayerProps): ReactElement {
onTouchEnd={enableContextMenu}
aria-label="play"
id={`audio-${props.fileName}`}
size="large"
size={props.size || "large"}
>
{isPlaying ? <Stop sx={iconStyle} /> : <PlayArrow sx={iconStyle} />}
</IconButton>
Expand Down

0 comments on commit 76046f1

Please sign in to comment.