Skip to content

Commit

Permalink
Merge pull request #840 from AI4Bharat/uichange2
Browse files Browse the repository at this point in the history
revert remove word count
  • Loading branch information
aparna-aa authored Oct 30, 2024
2 parents f9b1ae2 + 188d209 commit 79a8ccb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/containers/Organization/Video/RightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,9 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
style={{ fontSize: fontSize, height: "120px" }}
{...props}
/>
{/* <span id="charNum" className={classes.wordCount}>
<span id="charNum" className={classes.wordCount}>
{targetLength(index)}
</span> */}
</span>
</div>
)}
/>
Expand All @@ -791,9 +791,9 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
}, 200);
}}
/>
{/* <span id="charNum" className={classes.wordCount}>
<span id="charNum" className={classes.wordCount}>
{targetLength(index)}
</span> */}
</span>
</div>
)}
</CardContent>
Expand Down
12 changes: 6 additions & 6 deletions src/containers/Organization/Video/TranslationRightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
);
}}
/>
{/* <span
<span
className={classes.wordCount}
style={{
color:
Expand All @@ -786,7 +786,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
}}
>
{sourceLength(index)}
</span> */}
</span>
</div>
)}

Expand Down Expand Up @@ -844,7 +844,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
}}
{...props}
/>
{/* <span
<span
className={classes.wordCount}
style={{
color:
Expand All @@ -858,7 +858,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
}}
>
{targetLength(index)}
</span> */}
</span>
</div>
)}
/>
Expand Down Expand Up @@ -890,7 +890,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
}, 200);
}}
/>
{/* <span
<span
className={classes.wordCount}
style={{
color:
Expand All @@ -904,7 +904,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
}}
>
{targetLength(index)}
</span> */}
</span>
</div>
)}
</CardContent>
Expand Down
12 changes: 6 additions & 6 deletions src/containers/Organization/Video/VoiceOverRightPanel1.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
);
}}
/>
{/* <span
<span
className={classes.wordCount}
style={{
color:
Expand All @@ -1002,7 +1002,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
}}
>
{sourceLength(index)}
</span> */}
</span>
</div>}

<div className={classes.relative} style={{ display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: "4px", width: "50%" }}>
Expand Down Expand Up @@ -1148,7 +1148,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
disabled={isDisabled(index)}
{...props}
/>
{/* <span
<span
className={classes.wordCount}
style={{
color:
Expand All @@ -1162,7 +1162,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
}}
>
{targetLength(index)}
</span> */}
</span>
</div>
)}
/>
Expand Down Expand Up @@ -1193,7 +1193,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
}}
disabled={isDisabled(index)}
/>
{/* <span
<span
className={classes.wordCount}
style={{
color:
Expand All @@ -1207,7 +1207,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
}}
>
{targetLength(index)}
</span> */}
</span>
</div>
)}
</CardContent>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Organization/Video/audioPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const AudioPlayer = ({ src, fast = false }) => {
}, [src]);

return (
<PlayerContainer style={{opacity:disabled&&"0.5", cursor:disabled&&"not-allowed", border:fast&&"1px solid red"}}>
<PlayerContainer style={{opacity:disabled&&"0.5", cursor:disabled&&"not-allowed", border:fast===0?"1px solid green":fast===1?"1px solid orange":fast===2&&"1px solid red"}}>
<Controls>
<PlayPauseButton onClick={!disabled&&togglePlay} style={{cursor:disabled&&"not-allowed"}}>
{isPlaying ? (
Expand Down

0 comments on commit 79a8ccb

Please sign in to comment.