Skip to content

Commit 276d7f8

Browse files
change tooltip of youtube transcript
1 parent 55812ba commit 276d7f8

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/overview/onboarding/screens/onboarding/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ export default class OnboardingScreen extends StatefulUIElement<
357357
hoverOff
358358
/>
359359
<OptionTitleText>
360-
Sync & web-clipper for Obsidian & Logseq
360+
Sync & web-clipper for Obsidian/Readwise/Logseq
361361
</OptionTitleText>
362362
</OptionTitle>
363363
</OptionsContainer>

src/search-injection/components/youtubeActionBar.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,15 +793,20 @@ export default class YoutubeButtonMenu extends React.Component<Props, State> {
793793
getPortalRoot={this.props.getRootElement}
794794
tooltipText={
795795
<span>
796-
Take a screenshot of the current frame
796+
{this.state.showTranscript ===
797+
'pristine'
798+
? 'Show Transcript'
799+
: 'Hide Transcript'}
797800
<br />
798-
and adds a linked timestamp.
799801
</span>
800802
}
801803
placement="bottom"
802804
>
803805
<YTPMenuItem
804806
onClick={this.handleOpenTranscript}
807+
active={
808+
this.state.showTranscript !== 'pristine'
809+
}
805810
>
806811
<Icon
807812
filePath={runtime.getURL(
@@ -950,6 +955,12 @@ const YTPMenuItem = styled.div`
950955
? props.theme.colors.greyScale3
951956
: props.theme.colors.greyScale1_5};
952957
}
958+
959+
${(props) =>
960+
props.active &&
961+
`
962+
background-color: ${props.theme.colors.greyScale3};
963+
`}
953964
`
954965

955966
const YTPMenuItemLabel = styled.div`

0 commit comments

Comments
 (0)