From e14b3c76f9a5698aa09ae1f02c77e08077c195ad Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 27 Mar 2024 16:14:10 -0400 Subject: Improve submission box padding --- src/components/SponsorTimeEditComponent.tsx | 71 +++++++++++++++-------------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index 0564293a..527dbbe2 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -272,48 +272,49 @@ class SponsorTimeEditComponent extends React.Component ): ""} -
- {/* Editing Tools */} - - {chrome.i18n.getMessage("delete")} - - - {(!isNaN(segment[1]) && ![ActionType.Poi, ActionType.Full].includes(this.state.selectedActionType)) - && this.state.selectedActionType !== ActionType.Chapter ? ( - + this.previewTime(e.ctrlKey, e.shiftKey)}> - {chrome.i18n.getMessage("preview")} + onClick={this.deleteTime.bind(this)}> + {chrome.i18n.getMessage("delete")} - ): ""} - {(!isNaN(segment[1]) && this.state.selectedActionType != ActionType.Full) ? ( - - {chrome.i18n.getMessage("inspect")} - - ): ""} + {(!isNaN(segment[1]) && ![ActionType.Poi, ActionType.Full].includes(this.state.selectedActionType)) + && this.state.selectedActionType !== ActionType.Chapter ? ( + this.previewTime(e.ctrlKey, e.shiftKey)}> + {chrome.i18n.getMessage("preview")} + + ): ""} - {(!isNaN(segment[1]) && ![ActionType.Poi, ActionType.Full].includes(this.state.selectedActionType)) ? ( - this.previewTime(e.ctrlKey, e.shiftKey, true)}> - {chrome.i18n.getMessage("End")} - - ): ""} + {(!isNaN(segment[1]) && this.state.selectedActionType != ActionType.Full) ? ( + + {chrome.i18n.getMessage("inspect")} + + ): ""} + + {(!isNaN(segment[1]) && ![ActionType.Poi, ActionType.Full].includes(this.state.selectedActionType)) ? ( + this.previewTime(e.ctrlKey, e.shiftKey, true)}> + {chrome.i18n.getMessage("End")} + + ): ""} + + {(!isNaN(segment[1]) && this.state.selectedActionType != ActionType.Full) ? ( + + {this.state.editing ? chrome.i18n.getMessage("save") : chrome.i18n.getMessage("edit")} + + ): ""} + - {(!isNaN(segment[1]) && this.state.selectedActionType != ActionType.Full) ? ( - - {this.state.editing ? chrome.i18n.getMessage("save") : chrome.i18n.getMessage("edit")} - - ): ""} ); } -- cgit v1.2.3