mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Fix new vote options table layout
This commit is contained in:
@@ -189,21 +189,23 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
|||||||
{/* Downvote Options Row */}
|
{/* Downvote Options Row */}
|
||||||
{this.state.downvoting &&
|
{this.state.downvoting &&
|
||||||
<tr id={"sponsorSkipNoticeDownvoteOptionsRow" + this.idSuffix}>
|
<tr id={"sponsorSkipNoticeDownvoteOptionsRow" + this.idSuffix}>
|
||||||
|
<td id={"sponsorTimesDownvoteOptionsContainer" + this.idSuffix}>
|
||||||
|
|
||||||
{/* Normal downvote */}
|
{/* Normal downvote */}
|
||||||
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
|
||||||
onClick={() => this.contentContainer().vote(0, this.UUID, undefined, this)}>
|
|
||||||
{chrome.i18n.getMessage("downvoteDescription")}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{/* Category vote */}
|
|
||||||
{Config.config.testingServer &&
|
|
||||||
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
||||||
onClick={() => this.openCategoryChooser()}>
|
onClick={() => this.contentContainer().vote(0, this.UUID, undefined, this)}>
|
||||||
|
{chrome.i18n.getMessage("downvoteDescription")}
|
||||||
{chrome.i18n.getMessage("incorrectCategory")}
|
|
||||||
</button>
|
</button>
|
||||||
}
|
|
||||||
|
{/* Category vote */}
|
||||||
|
{Config.config.testingServer &&
|
||||||
|
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
||||||
|
onClick={() => this.openCategoryChooser()}>
|
||||||
|
|
||||||
|
{chrome.i18n.getMessage("incorrectCategory")}
|
||||||
|
</button>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
@@ -211,24 +213,24 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
|||||||
{/* Category Chooser Row */}
|
{/* Category Chooser Row */}
|
||||||
{this.state.choosingCategory &&
|
{this.state.choosingCategory &&
|
||||||
<tr id={"sponsorSkipNoticeCategoryChooserRow" + this.idSuffix}>
|
<tr id={"sponsorSkipNoticeCategoryChooserRow" + this.idSuffix}>
|
||||||
|
<td>
|
||||||
|
{/* Category Selector */}
|
||||||
|
<select id={"sponsorTimeCategories" + this.idSuffix}
|
||||||
|
className="sponsorTimeCategories"
|
||||||
|
defaultValue={utils.getSponsorTimeFromUUID(this.props.contentContainer().sponsorTimes, this.props.UUID).category}
|
||||||
|
ref={this.categoryOptionRef}
|
||||||
|
onChange={this.categorySelectionChange.bind(this)}>
|
||||||
|
|
||||||
{/* Category Selector */}
|
{this.getCategoryOptions()}
|
||||||
<select id={"sponsorTimeCategories" + this.idSuffix}
|
</select>
|
||||||
className="sponsorTimeCategories"
|
|
||||||
defaultValue={utils.getSponsorTimeFromUUID(this.props.contentContainer().sponsorTimes, this.props.UUID).category}
|
|
||||||
ref={this.categoryOptionRef}
|
|
||||||
onChange={this.categorySelectionChange.bind(this)}>
|
|
||||||
|
|
||||||
{this.getCategoryOptions()}
|
{/* Submit Button */}
|
||||||
</select>
|
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
||||||
|
onClick={() => this.contentContainer().vote(undefined, this.UUID, this.categoryOptionRef.current.value, this)}>
|
||||||
{/* Submit Button */}
|
|
||||||
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
|
||||||
onClick={() => this.contentContainer().vote(undefined, this.UUID, this.categoryOptionRef.current.value, this)}>
|
|
||||||
|
|
||||||
{chrome.i18n.getMessage("submit")}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
|
{chrome.i18n.getMessage("submit")}
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user