mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 21:17:20 +03:00
Fixed react whitespace error
This commit is contained in:
@@ -67,50 +67,52 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> {
|
|||||||
className={"sponsorSkipObject sponsorSkipNotice" + (this.props.fadeIn ? " sponsorSkipNoticeFadeIn" : "")}
|
className={"sponsorSkipObject sponsorSkipNotice" + (this.props.fadeIn ? " sponsorSkipNoticeFadeIn" : "")}
|
||||||
style={noticeStyle}
|
style={noticeStyle}
|
||||||
onMouseEnter={this.pauseCountdown.bind(this)}
|
onMouseEnter={this.pauseCountdown.bind(this)}
|
||||||
onMouseLeave={this.startCountdown.bind(this)}> <tbody>
|
onMouseLeave={this.startCountdown.bind(this)}>
|
||||||
|
<tbody>
|
||||||
|
|
||||||
{/* First row */}
|
{/* First row */}
|
||||||
<tr id={"sponsorSkipNoticeFirstRow" + this.idSuffix}>
|
<tr id={"sponsorSkipNoticeFirstRow" + this.idSuffix}>
|
||||||
{/* Left column */}
|
{/* Left column */}
|
||||||
<td>
|
<td>
|
||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
<img id={"sponsorSkipLogo" + this.idSuffix}
|
<img id={"sponsorSkipLogo" + this.idSuffix}
|
||||||
className="sponsorSkipLogo sponsorSkipObject"
|
className="sponsorSkipLogo sponsorSkipObject"
|
||||||
src={chrome.extension.getURL("icons/IconSponsorBlocker256px.png")}>
|
src={chrome.extension.getURL("icons/IconSponsorBlocker256px.png")}>
|
||||||
</img>
|
</img>
|
||||||
|
|
||||||
<span id={"sponsorSkipMessage" + this.idSuffix}
|
<span id={"sponsorSkipMessage" + this.idSuffix}
|
||||||
className="sponsorSkipMessage sponsorSkipObject">
|
className="sponsorSkipMessage sponsorSkipObject">
|
||||||
|
|
||||||
{this.state.noticeTitle}
|
{this.state.noticeTitle}
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
{/* Right column */}
|
|
||||||
<td className="sponsorSkipNoticeRightSection"
|
|
||||||
style={{top: "11px"}}>
|
|
||||||
|
|
||||||
{/* Time left */}
|
|
||||||
{this.props.timed ? (
|
|
||||||
<span id={"sponsorSkipNoticeTimeLeft" + this.idSuffix}
|
|
||||||
className="sponsorSkipObject sponsorSkipNoticeTimeLeft">
|
|
||||||
|
|
||||||
{this.state.countdownText || (this.state.countdownTime + "s")}
|
|
||||||
</span>
|
</span>
|
||||||
) : ""}
|
</td>
|
||||||
|
|
||||||
|
{/* Right column */}
|
||||||
|
<td className="sponsorSkipNoticeRightSection"
|
||||||
|
style={{top: "11px"}}>
|
||||||
|
|
||||||
|
{/* Time left */}
|
||||||
|
{this.props.timed ? (
|
||||||
|
<span id={"sponsorSkipNoticeTimeLeft" + this.idSuffix}
|
||||||
|
className="sponsorSkipObject sponsorSkipNoticeTimeLeft">
|
||||||
|
|
||||||
|
{this.state.countdownText || (this.state.countdownTime + "s")}
|
||||||
|
</span>
|
||||||
|
) : ""}
|
||||||
|
|
||||||
|
|
||||||
{/* Close button */}
|
{/* Close button */}
|
||||||
<img src={chrome.extension.getURL("icons/close.png")}
|
<img src={chrome.extension.getURL("icons/close.png")}
|
||||||
className="sponsorSkipObject sponsorSkipNoticeButton sponsorSkipNoticeCloseButton sponsorSkipNoticeRightButton"
|
className="sponsorSkipObject sponsorSkipNoticeButton sponsorSkipNoticeCloseButton sponsorSkipNoticeRightButton"
|
||||||
onClick={() => this.close()}>
|
onClick={() => this.close()}>
|
||||||
</img>
|
</img>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
|
|
||||||
</tbody> </table>
|
</tbody>
|
||||||
|
</table>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user