Skip to content

Commit

Permalink
feat: scrolling fixed on videos
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmpk committed Jan 30, 2024
1 parent a9b2d17 commit e6c62db
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/components/App/SideBar/YouTube/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,22 @@ export const YouTube = () => {
}

return (
<Wrapper>
<StyledEpisode
boostCount={boostAmount || 0}
date={date || 0}
episodeTitle={formatDescription(episodeTitle)}
id={id}
imageUrl={imageUrl || 'video_default.svg'}
isSelectedView
link={link}
onClick={() => null}
showTitle={showTitle}
type={nodeType || type}
/>
<StyledDivider />
<div ref={scrollTargetRef} style={{ overflow: 'auto', flex: 1, width: '100%' }}>
<div ref={scrollTargetRef} style={{ overflow: 'auto', flex: 1, width: '100%' }}>
<Wrapper>
<StyledEpisode
boostCount={boostAmount || 0}
date={date || 0}
episodeTitle={formatDescription(episodeTitle)}
id={id}
imageUrl={imageUrl || 'video_default.svg'}
isSelectedView
link={link}
onClick={() => null}
showTitle={showTitle}
type={nodeType || type}
/>
<StyledDivider />

<BoostWrapper>
<BoostAmt amt={boostAmount} />
<Booster content={selectedNode} count={boostAmount} refId={refId} updateCount={setBoostAmount} />
Expand All @@ -61,8 +62,8 @@ export const YouTube = () => {
<TextWrapper>
<Transcript key={id} node={selectedNode} stateless />
</TextWrapper>
</div>
</Wrapper>
</Wrapper>
</div>
)
}

Expand Down

0 comments on commit e6c62db

Please sign in to comment.