Skip to content

Commit 86cf324

Browse files
committed
FIx chapter name alignment on new YouTube layout
1 parent e32db21 commit 86cf324

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

public/content.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ div:hover > .sponsorBlockChapterBar {
184184
margin: auto;
185185
}
186186

187+
.sbChapterVoteButton {
188+
padding: 0 !important;
189+
}
190+
187191
.playerButton {
188192
vertical-align: top;
189193
}
@@ -957,5 +961,5 @@ input::-webkit-inner-spin-button {
957961
}
958962

959963
.sponsorblock-chapter-visible {
960-
display: inherit !important;
964+
display: block !important;
961965
}

src/components/ChapterVoteComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
4848
draggable="false"
4949
title={chrome.i18n.getMessage("upvoteButtonInfo")}
5050
onClick={(e) => this.vote(e, 1)}>
51-
<ThumbsUpSvg className="playerButtonImage"
51+
<ThumbsUpSvg className="playerButtonImage sbChapterVoteButton"
5252
fill={Config.config.colorPalette.white}
5353
width={this.state.size} height={this.state.size} />
5454
</button>
@@ -102,7 +102,7 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
102102
}
103103
}}>
104104
<ThumbsDownSvg
105-
className="playerButtonImage"
105+
className="playerButtonImage sbChapterVoteButton"
106106
fill={downvoteButtonColor(this.state.segment ? [this.state.segment] : null, SkipNoticeAction.Downvote, SkipNoticeAction.Downvote)}
107107
width={this.state.size}
108108
height={this.state.size} />

0 commit comments

Comments
 (0)