Skip to content

Commit

Permalink
fixed: layout bug in toc
Browse files Browse the repository at this point in the history
  • Loading branch information
Om Chauhan authored and Om Chauhan committed Dec 4, 2024
1 parent 1eb2d9a commit eeb502f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const TrainingModuleHandler = (props) => {
if (props.editMode) {
slideModificationButtons = (
<div className="training-modification training_slide_modification_buttons">
<button className="button dark" onClick={toggleReorderSlideModal}>{I18n.t('training.change_order')}</button>
<button className="button dark" onClick={toggleReorderSlideModal} disabled={slides.length < 2}>{I18n.t('training.change_order')}</button>
<button className="button dark" onClick={toggleAddSlideModal}>{I18n.t('training.add_slide')}</button>
<button className="button danger" onClick={toggleRemoveSlideModal}>{I18n.t('training.remove_slide')}</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/training_modules/_training.styl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
font-size: 14px
&:before
display inline-block
width 1em
width 1.4em
padding-right 5px
font-weight bold
text-align right
Expand Down

0 comments on commit eeb502f

Please sign in to comment.