FIx chapter name alignment on new YouTube layout

This commit is contained in:
Ajay
2025-07-21 03:41:07 -04:00
parent e32db21f4e
commit 86cf324d62
2 changed files with 7 additions and 3 deletions

View File

@@ -184,6 +184,10 @@ div:hover > .sponsorBlockChapterBar {
margin: auto;
}
.sbChapterVoteButton {
padding: 0 !important;
}
.playerButton {
vertical-align: top;
}
@@ -957,5 +961,5 @@ input::-webkit-inner-spin-button {
}
.sponsorblock-chapter-visible {
display: inherit !important;
display: block !important;
}

View File

@@ -48,7 +48,7 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
draggable="false"
title={chrome.i18n.getMessage("upvoteButtonInfo")}
onClick={(e) => this.vote(e, 1)}>
<ThumbsUpSvg className="playerButtonImage"
<ThumbsUpSvg className="playerButtonImage sbChapterVoteButton"
fill={Config.config.colorPalette.white}
width={this.state.size} height={this.state.size} />
</button>
@@ -102,7 +102,7 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
}
}}>
<ThumbsDownSvg
className="playerButtonImage"
className="playerButtonImage sbChapterVoteButton"
fill={downvoteButtonColor(this.state.segment ? [this.state.segment] : null, SkipNoticeAction.Downvote, SkipNoticeAction.Downvote)}
width={this.state.size}
height={this.state.size} />